From: Sage Weil Date: Wed, 8 Jun 2016 19:02:14 +0000 (-0400) Subject: os/FuseStore: fix statfs X-Git-Tag: v11.0.0~248^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=655b75bab20af26295ad94b11625ab7a3ade8a64;p=ceph.git os/FuseStore: fix statfs Signed-off-by: Sage Weil --- diff --git a/src/os/FuseStore.cc b/src/os/FuseStore.cc index e9445476e924..a98d9e4eedc8 100644 --- a/src/os/FuseStore.cc +++ b/src/os/FuseStore.cc @@ -984,7 +984,7 @@ static int os_statfs(const char *path, struct statvfs *stbuf) return r; stbuf->f_bsize = s.bsize; stbuf->f_blocks = s.blocks; - stbuf->f_bavail = stbuf->f_bfree = s.available / s.blocks; + stbuf->f_bavail = stbuf->f_bfree = s.available / s.bsize; return 0; }