From: Sage Weil Date: Wed, 8 Jun 2016 19:02:55 +0000 (-0400) Subject: os/filestore: fix statfs X-Git-Tag: v11.0.0~248^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abd84f4f1b804aa6a90ed5f8b94c1cfddc4e8956;p=ceph.git os/filestore: fix statfs Signed-off-by: Sage Weil --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index e927adfd3e50..6ccbf9002174 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -713,9 +713,7 @@ int FileStore::statfs(struct store_statfs_t *buf0) } buf0->blocks = buf.f_blocks; buf0->bsize = buf.f_bsize; - - buf0->allocated = buf.f_bavail; - + buf0->available = buf.f_bavail * buf.f_bsize; return 0; }