Re: Filesystem oddity

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

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux