]> 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 20554/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 31 Jan 2018 15:54:28 +0000 (18:54 +0300)
committerPrashant D <pdhange@redhat.com>
Fri, 23 Feb 2018 03:29:58 +0000 (22:29 -0500)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit f798b13a043523e1677abdcb3df0d9ced8774098)

src/os/bluestore/BlueStore.cc

index 6a98ac0ec04ea9bc58144b69cd1ac4d73fb5294f..aee560ad6c9bd3136f30bf8892427aa85c5d923d 100644 (file)
@@ -6225,11 +6225,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);
-    }
   }
 
   {