[OpenAFS] Re: OpenAFS-info digest, Vol 1 #905 - 4 msgs
Douglas E. Engert
deengert@anl.gov
Tue, 05 Nov 2002 11:30:23 -0600
James L Robinson wrote:
>
> On Tuesday 05 November 2002 12:01 pm, openafs-info-request@openafs.org wrote:
> > Would be nice if it did not cross volume mounts.
>
> GNU find won't cross volume mountpoints by default, that is,
> without the '-noleaf' option. YMMV.
Yes, my milage varies. The gnu find I have is crossing boundries,
with or without out the -noleaf. But the -noleaf does not say
to not cross volume boundries, it says don't try to optimise the
searching for directories, based on the hard link count.
In the case where the -type d is used, we are still looking at all
directories, and the mount point appears as a directory.
>
> -noleaf
> Do not optimize by assuming that directories con-
> tain 2 fewer subdirectories than their hard link
> count. This option is needed when searching
> filesystems that do not follow the Unix directory-
> link convention, such as CD-ROM or MS-DOS filesys-
> tems or AFS volume mount points. Each directory on
> a normal Unix filesystem has at least 2 hard links:
> its name and its `.' entry. Additionally, its
> subdirectories (if any) each have a `..' entry
> linked to that directory. When find is examining a
> directory, after it has statted 2 fewer subdirecto-
> ries than the directory's link count, it knows that
> the rest of the entries in the directory are non-
> directories (`leaf' files in the directory tree).
> If only the files' names need to be examined, there
> is no need to stat them; this gives a significant
> increase in search speed.
>
> --
> James Robinson Phone: (704) 687-4876
> College of Information Technology FAX: (704) 687-3516
> UNC Charlotte Email: jlrobins@uncc.edu
> Charlotte, NC 28223-0001 Director of Technology Services
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444