Filesystem oddity
Gordon Messmer
yinyang at eburg.com
Tue Jan 24 01:43:56 UTC 2006
Dan Track wrote:
>
> I'd liek to ask how this is possible, is this something to do with
> blocks on the filesystem. And how does the command: find /tmp -type d
> -empty, what parameter does it use to find an empty directory?
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.
More information about the fedora-list
mailing list