]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: do not account DB volume space in total one reported by statfs method 20487/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 31 Jan 2018 15:54:28 +0000 (18:54 +0300)
committerSage Weil <sage@redhat.com>
Mon, 19 Feb 2018 19:11:44 +0000 (13:11 -0600)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc

index f419a0a64aadc10997932371231ec3a20ec902ea..0f731776e83bd4642bc5e71caf6b50c940888fee 100644 (file)
@@ -6404,11 +6404,6 @@ int BlueStore::statfs(struct store_statfs_t *buf)
     if (shared_available > 0) {
       buf->available += shared_available;
     }
-
-    // include dedicated db, too, if that isn't the shared device.
-    if (bluefs_shared_bdev != BlueFS::BDEV_DB) {
-      buf->total += bluefs->get_total(BlueFS::BDEV_DB);
-    }
   }
 
   {