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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
2.16.4




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux