From 40ab7c26a999d881749f60eb09573bf306bd7531 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Tue, 15 Apr 2025 08:45:49 +0000 Subject: [PATCH] os/bluestore: Add printing shards to Onode::printer It was not printed at all. Sometimes it is important. Signed-off-by: Adam Kupczyk --- src/os/bluestore/BlueStore_debug.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueStore_debug.cc b/src/os/bluestore/BlueStore_debug.cc index 2d4e3a423fc..99651577ebf 100644 --- a/src/os/bluestore/BlueStore_debug.cc +++ b/src/os/bluestore/BlueStore_debug.cc @@ -231,8 +231,15 @@ std::ostream& operator<<(std::ostream& out, const BlueStore::Onode::printer &p) << " (" << std::dec << o.onode.size << ")" << " expected_object_size " << o.onode.expected_object_size << " expected_write_size " << o.onode.expected_write_size - << " in " << o.onode.extent_map_shards.size() << " shards" - << ", " << o.extent_map.spanning_blob_map.size() + << " in " << o.onode.extent_map_shards.size() << " shards"; + if (o.onode.extent_map_shards.size() > 0) { + out << ":" << std::hex; + for (auto& s : o.onode.extent_map_shards) { + out << " 0x" << s.offset; + } + out << std::dec; + } + out << ", " << o.extent_map.spanning_blob_map.size() << " spanning blobs"; const BlueStore::ExtentMap& map = o.extent_map; std::set visited; -- 2.39.5