Rich Sudlow wrote:
>
> Several years ago on info-afs there was a discussion about using find and
> how to avoid find going through afs filespace.
>
> My question however is what are other sites using for doing recursive finds
> through afs file space without crossing mount points. e.g. I want to go
> through a users volume but not go through a mount point into their
> backup volume. (the backup volume may not be named consistently either..).
> Also the speed with which this can be done is very important too.
>
> Rich
>
> Rich Sudlow
> Office of Information Technology
> University of Notre Dame
Rich,
the GNU version of find by default does not enter directories that are
mount-points because it does a 'smart' check in every directory. It checks
whether the number of links on the current directory is not larger than 2 ('.'
and '..'). This is done to bypass a 'stat syscall' on every file in the
directory. If this is the case there are no more subdirectories although a
mount-point appears as a directory in the `ls -l` listing.
It appears as if the mount-points are not real directories. I don't know where
AFS stores the information about a mount-point but it doesn't store the info
from `fs mkm foo user.johndoe.foo` in the same way as a `mkdir foo` would do in
either AFS or a ufs filesystem.
By the way to circumvent the standard effect of GNU-find use the -noleaf option
and find will do a 'stat syscall' on every file in the directory which will
make things run slower of coarse. I reported this to the Transarc
representatives during Decorum'96 but I haven't seen anything from it.
Fred
--
With kind regards / Met vriendelijke groeten
\|/ DISCLAIMER: The above opinion is my own, not my employer's !!
(o -)
--oOO--(_)--OOo-------------------------------------------------------------
Fred Donck Shell International Exploration and Production B.V.
Unix System Engineer Research & Technical Services
__ __ __ SIEP / EPT-IS
/_ /_/ /_/ __/ Rijswijk, The Netherlands
/ / \ /_ /_/ Tel. +31 (0) 70 3112374
Fax. +31 (0) 70 3113110
X.400 : S=DONCK/I=FCW/C=NL/A=400NET/ e-mail : [EMAIL PROTECTED]
P=SHELL/O=SIEP RIJSWIJK/OU=EPT-IS/OU=OPENMAIL