From 9c7cc0b9a1b4775fea8e1488a9497dcb8adabeff Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Sun, 27 Jul 2025 03:33:21 +0000 Subject: [PATCH] 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 --- src/crimson/os/seastore/async_cleaner.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.3