mbox series

[RFC,0/2] btrfs-progs: provide command to dump checksums

Message ID 20190228144432.17038-1-jthumshirn@suse.de (mailing list archive)
Headers show
Series btrfs-progs: provide command to dump checksums | expand

Message

Johannes Thumshirn Feb. 28, 2019, 2:44 p.m. UTC
Provide a command to dump checksums from 'btrfs inspect-internal'. This then
does a lookup for the given file's extents and walks the csum tree printing
all checksums of an extent.

This is marked as an RFC because up to now I've only tested it on simple files
created with 'xfs_io -f -c "pwrite 0 $SIZE"', but like to hear some feedback.

It is also missing some tests to check implementation and provide regression tests
for eventual bugs.

It is also available on github @ https://github.com/morbidrsa/btrfs-progs/tree/inspect-csums

Johannes Thumshirn (2):
  btrfs-progs: add 'btrfs inspect-internal csum-dump' command
  btrfs-progs: completion: wire-up dump-csum

 Makefile                 |   3 +-
 btrfs-completion         |   4 +-
 cmds-inspect-dump-csum.c | 266 +++++++++++++++++++++++++++++++++++++++++++++++
 cmds-inspect.c           |   2 +
 commands.h               |   2 +
 5 files changed, 274 insertions(+), 3 deletions(-)
 create mode 100644 cmds-inspect-dump-csum.c