orangefs: fix orangefs df output.
authorMike Marshall <hubcap@omnibond.com>
Tue, 18 May 2021 12:09:13 +0000 (08:09 -0400)
committerMike Marshall <hubcap@omnibond.com>
Mon, 28 Jun 2021 12:40:08 +0000 (08:40 -0400)
Orangefs df output is whacky. Walt Ligon suggested this might fix it.
It seems way more in line with reality now...

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/super.c

index ee5efdc..2f2e430 100644 (file)
@@ -209,7 +209,7 @@ static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf)
        buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail;
        buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total;
        buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail;
-       buf->f_frsize = sb->s_blocksize;
+       buf->f_frsize = 0;
 
 out_op_release:
        op_release(new_op);