From: Adam Kupczyk Date: Tue, 15 Apr 2025 08:45:49 +0000 (+0000) Subject: os/bluestore: Add printing shards to Onode::printer X-Git-Tag: testing/wip-vshankar-testing-20250508.200127-debug~9^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=40ab7c26a999d881749f60eb09573bf306bd7531;p=ceph-ci.git os/bluestore: Add printing shards to Onode::printer It was not printed at all. Sometimes it is important. Signed-off-by: Adam Kupczyk --- 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;