[EMAIL PROTECTED] (Thomas Bushnell, BSG) writes: > Hurd directory servers are required to provide the correct st_nlink > value, which is always the number of subdirs, plus two.
Must it be exactly right, or is it ok with a value that is slightly larger? More precisely, it seems like the easiest way to get a reasonable st_nlink field in shadowfs is to add up the st_nlink fields of the corresponding underlying directories, adjusting for the ±2 terms. Then you will get the correct value + the number of files that are actually shadowing each other. If a process that traverses the tree finds that readdir returns fewer entries than st_nlink of a previous stat indicates, it can't know if that's because stat lied or because some files were unlinked under its feet. /Niels _______________________________________________ Help-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-hurd