help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "find" doesn't work


From: Thomas Bushnell, BSG
Subject: Re: "find" doesn't work
Date: 10 Jun 2002 17:48:28 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Wolfgang Jährling <wolfgang@pro-linux.de> writes:

> Moritz told me that find uses an optimization that causes it to ignore
> some directories in Shadowfs: The "struct stat" for a directory contains
> the number of links to the directory, which also tells us the number of
> subdirectories, as we have a ".." link from each subdir plus two other
> links ("." and the link to it in its parent directory).  Thus, if find
> has processed st_nlink-2 subdirs, it assumes there are no more.  And
> Shadowfs simply returned the struct stat for one of its underlying
> directories.  

This is a real bug in shadowfs.

Hurd directory servers are required to provide the correct st_nlink
value, which is always the number of subdirs, plus two.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]