lkml.org 
[lkml]   [2021]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.13 179/351] orangefs: fix orangefs df output.
    Date
    From: Mike Marshall <hubcap@omnibond.com>

    [ Upstream commit 0fdec1b3c9fbb5e856a40db5993c9eaf91c74a83 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    fs/orangefs/super.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
    index ee5efdc35cc1..2f2e430461b2 100644
    --- a/fs/orangefs/super.c
    +++ b/fs/orangefs/super.c
    @@ -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);
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-07-19 20:10    [W:2.793 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site