Moritz Schulte <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Thomas Bushnell, BSG) writes: > > > Why is it not sufficient to add up the link counts of the shadowed > > directories (compensating for the -2 term) and use that? > > In the case where we have file entries with the same names in the > shadowed directories, some entries get shadowedd and we would > calculate a st_nlink, which can be to high, because Shadowfs has > always only one directory entry. > > That was my first question: wether that is acceptable.
I'd rather not have this miscount. But it's easy to solve; it means that when two directories have the same name, you have to check those individually to see if they are directories so you can count links correctly. But that's not so bad. It doesn't mean checking every single entry in both directories; it means checking only those elements which are duplicated names. Thomas _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd