[OpenAFS] AFS version of du
Fri, 30 Apr 2010 15:12:41 +0100
Steve Simmons <email@example.com> wrote:
> Any utility that recurses through the file system (du, find, ls, others) has
> the same set of core problems - things to include or exclude, cross or don't
> cross mount points, etc, etc. This is immensely complicated by the breadth
> of things that can and do comprise mount points. Is a NFS mount a mount
> point? An AFS? Samba shares? Repeat question for every conceivable file
> system, and it becomes hellacious.
Kafs deals with this by generating a separate superblock for each volume.
This mean du works correctly.
Note, even in OpenAFS, you can return a different set of filesystem stats for
each dentry in the tree if you wish. The statfs superblock op takes a dentry
for you to use as base.