From: myoungwon oh Date: Sun, 27 Jul 2025 03:33:21 +0000 (+0000) Subject: crimson/os/seastore: fix incorrect total space reporting when using multiple shards... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9c7cc0b9a1b4775fea8e1488a9497dcb8adabeff;p=ceph.git crimson/os/seastore: fix incorrect total space reporting when using multiple shards in RBM This commit fixes incorrect total space reporting when using multiple shards in RBM. Only reporting is incorrect, while underlying RBM mechanism works correctly. Signed-off-by: Myoungwon Oh --- diff --git a/src/crimson/os/seastore/async_cleaner.h b/src/crimson/os/seastore/async_cleaner.h index 1cef771aeb88..bcaf4a403d9e 100644 --- a/src/crimson/os/seastore/async_cleaner.h +++ b/src/crimson/os/seastore/async_cleaner.h @@ -1762,7 +1762,8 @@ public: auto rbs = rb_group->get_rb_managers(); size_t total = 0; for (auto p : rbs) { - total += p->get_device()->get_available_size(); + total += p->get_size(); + total += p->get_journal_size(); } return total; }