Roland McGrath <[EMAIL PROTECTED]> writes:

> By my reading of 1003.1-1996, st_nlink should be "the number of directory
> entries that refer to the file".  In a case like this, I think it's pretty
> open to interpretation what constitutes a directory entry; there always
> might be extra entries in some directory you don't know about, and that is
> not distinguishable from st_nlink just being too high.

Unless there's a very good reason, I would like st_nlink on a
directory to always be the number of subdirectories plus two.  

If you have permissions on the directory, then there can't be entries
you don't know about, because we have an interface that promises the
whole list.

Posix is looser than this, as Roland points out, but absent a really
good reason (and "it's a bother to code" is probably not a really good
reason) we should provide consistent sane behavior.


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to