summaryrefslogtreecommitdiffstats
path: root/fs/afs/xattr.c
diff options
context:
space:
mode:
authorMarc Dionne <marc.dionne@auristor.com>2019-04-25 17:04:37 +0200
committerDavid Howells <dhowells@redhat.com>2019-05-07 17:48:44 +0200
commitc0abbb5791f1984350f1dac72c31c67010010a30 (patch)
tree6d2c3a5c335517f57b25d512f35a1bdbb6dc27f2 /fs/afs/xattr.c
parentafs: Log more information for "kAFS: AFS vnode with undefined type\n" (diff)
downloadlinux-c0abbb5791f1984350f1dac72c31c67010010a30.tar.xz
linux-c0abbb5791f1984350f1dac72c31c67010010a30.zip
afs: Calculate i_blocks based on file size
While it's not possible to give an accurate number for the blocks used on the server, populate i_blocks based on the file size so that 'du' can give a reasonable estimate. The value is rounded up to 1K granularity, for consistency with what other AFS clients report, and the servers' 1K usage quota unit. Note that the value calculated by 'du' at the root of a volume can still be slightly lower than the quota usage on the server, as 0-length files are charged 1 quota block, but are reported as occupying 0 blocks. Again, this is consistent with other AFS clients. Signed-off-by: Marc Dionne <marc.dionne@auristor.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/xattr.c')
0 files changed, 0 insertions, 0 deletions