From 1ce2c0370fb0128cf32a3f893b10aeaceeb936c0 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Thu, 19 Jan 2023 13:22:10 +0000 Subject: [PATCH] os/bluestore: Added printing of csum size Modifed bluestore_blob_t to include current size of csum_data. Signed-off-by: Adam Kupczyk --- src/os/bluestore/bluestore_types.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/bluestore_types.cc b/src/os/bluestore/bluestore_types.cc index 904b6fbd3d987..17a24af05eb66 100644 --- a/src/os/bluestore/bluestore_types.cc +++ b/src/os/bluestore/bluestore_types.cc @@ -726,7 +726,8 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o) } if (o.has_csum()) { out << " " << Checksummer::get_csum_type_string(o.csum_type) - << "/0x" << std::hex << (1ull << o.csum_chunk_order) << std::dec; + << "/0x" << std::hex << (1ull << o.csum_chunk_order) << std::dec + << "/" << o.csum_data.length(); } if (o.has_unused()) out << " unused=0x" << std::hex << o.unused << std::dec; -- 2.39.5