This patchset will change the csum mismatch error message for data csum
mismatch, from the old almost meaningless output:
[5/7] checking csums against data
mirror 1 bytenr 13631488 csum 19 expected csum 152 <<<
ERROR: errors found in csum tree
To a more human readable output:
[5/7] checking csums against data
mirror 1 bytenr 13631488 csum 0x13fec125 expected csum 0x98757625
ERROR: errors found in csum tree
Qu Wenruo (3):
btrfs-progs: move btrfs_format_csum() to common/utils.[ch]
btrfs-progs: slightly enhance btrfs_format_csum()
btrfs-progs: check: output proper csum values for --check-data-csum
check/main.c | 13 ++++++++++---
common/utils.c | 16 ++++++++++++++++
common/utils.h | 4 ++++
kernel-shared/disk-io.c | 19 ++-----------------
4 files changed, 32 insertions(+), 20 deletions(-)
--
2.32.0