]> git.hungrycats.org Git - bees/commitdiff
scan_one_extent: in skip/scan lines, log whether extent is compressed
authorZygo Blaxell <bees@furryterror.org>
Thu, 28 Nov 2024 19:02:57 +0000 (14:02 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sun, 1 Dec 2024 04:30:33 +0000 (23:30 -0500)
Useful for debugging the compressed-zero-block cases.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc

index 94989bddd52790e8e8b0850617cb04b63689b9d0..e259b211693a76db1479f6aa26264e5b4ae5660a 100644 (file)
@@ -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())