]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afsd: Make mountdir check kernel-specific
authorAndrew Deason <adeason@sinenomine.net>
Thu, 17 Feb 2011 21:47:00 +0000 (15:47 -0600)
committerDerrick Brashear <shadow@dementia.org>
Fri, 18 Feb 2011 06:08:29 +0000 (22:08 -0800)
commitde1158431ad3308886c54c8ff3d8b6dc8259c41b
treef5f65e546d9e6090bca62ba4812f6063dcabc239
parenta5bbc871ce360f5c95edf08d2a51b95a6095e3cf
afsd: Make mountdir check kernel-specific

Checking if the /afs directory exists only makes sense for the kernel
afsd. The libuafs afsd does not care if the mount directory actually
exists on the machine or not, since it may not interact with the mount
directory path on the local machine at all.

So, make the mountdir check code be a new afsd function
(afsd_check_mount), and have it stat() the mount directory only in the
kernels-specific afsd.

Reviewed-on: http://gerrit.openafs.org/3980
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit fd010651194f4c9f1324ea7aa8d84426ce9827e4)

Change-Id: Ib4f4fe3a6072f9aea4683bb1ba531da8d965b156
Reviewed-on: http://gerrit.openafs.org/3983
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/UKERNEL/afsd_uafs.c
src/afsd/afsd.c
src/afsd/afsd.h
src/afsd/afsd_kernel.c