Filesystem oddity

Gordon Messmer yinyang at eburg.com
Tue Jan 24 01:57:34 UTC 2006


Gordon Messmer wrote:
> 
> I believe that it calls fstat() on the directory after opening it, and 
> uses the st_nlink field in the result.  An empty directory will have two 
> hard links.

Nope.  My ignorance is showing, again.  A directory with no 
*subdirectories* will have two hard links.




More information about the fedora-list mailing list