From 0b974b5485a21e823160bb267441d64f9ec6b852 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 28 Nov 2024 14:02:57 -0500 Subject: [PATCH] scan_one_extent: in skip/scan lines, log whether extent is compressed Useful for debugging the compressed-zero-block cases. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index 94989bd..e259b21 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -818,7 +818,8 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e) (force_insert ? "skip" : "scan") << ": " << pretty(e.size()) << " " << dedupe_list.size() << "d" << copy_list.size() << "c" - << ((bytes_zeroed + BLOCK_SIZE_SUMS - 1) / BLOCK_SIZE_SUMS) << "p {" + << ((bytes_zeroed + BLOCK_SIZE_SUMS - 1) / BLOCK_SIZE_SUMS) << "p" + << (extent_compressed ? "z {" : " {") << to_hex(e.bytenr()) << "+" << to_hex(e.offset()) << "} " << to_hex(e.begin()) << " [" << bar << "] " << to_hex(e.end()) << ' ' << name_fd(bfr.fd())