From: redickwang Date: Thu, 16 Jul 2020 02:34:39 +0000 (+0800) Subject: client: more reasonable statfs ffree X-Git-Tag: v16.1.0~330^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2479debace31148e8d9319507977b0e081ee91ff;p=ceph.git client: more reasonable statfs ffree 'ceph-fuse 1038 - - - /cephfs' is more reasonable than 'ceph-fuse 1038 1038 0 100% /cephfs' Fixs: https://tracker.ceph.com/issues/47568 Signed-off-by: redickwang --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 3bb4749808eee..2d8a20f9271b8 100755 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -10164,7 +10164,7 @@ int Client::statfs(const char *path, struct statvfs *stbuf, stbuf->f_frsize = 1 << CEPH_BLOCK_SHIFT; stbuf->f_bsize = 1 << CEPH_BLOCK_SHIFT; stbuf->f_files = total_files_on_fs; - stbuf->f_ffree = 0; + stbuf->f_ffree = -1; stbuf->f_favail = -1; stbuf->f_fsid = -1; // ?? stbuf->f_flag = 0; // ??