os/FuseStore: fix statfs

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-06-08 15:02:14 -04:00
parent b5eb28b649
commit 655b75bab2

View File

@ -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;
}