[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st_nlink of directory nodes in shadowfs
From: |
Thomas Bushnell, BSG |
Subject: |
Re: st_nlink of directory nodes in shadowfs |
Date: |
27 Oct 2001 19:25:13 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Moritz Schulte <moritz@chaosdorf.de> writes:
> tb@becket.net (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
- st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Roland McGrath, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Roland McGrath, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs,
Thomas Bushnell, BSG <=
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Neal H Walfield, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27