btrfs/097: work on non-4k block sized filesystems

This commit makes use of the new _filter_xfs_io_blocks_modified filtering
function to print information in terms of file blocks rather than file
offset.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Chandan Rajendra
2015-12-21 18:01:46 +11:00
committed by Dave Chinner
parent 5514417282
commit b7318fa070
2 changed files with 41 additions and 23 deletions
+17 -6
View File
@@ -1,7 +1,18 @@
QA output created by 097
wrote 65536/65536 bytes at offset 131072
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digest in the original filesystem:
6c6079335cff141b8a31233ead04cbff SCRATCH_MNT/mysnap2/foo
File digest in the new filesystem:
6c6079335cff141b8a31233ead04cbff SCRATCH_MNT/mysnap2/foo
Blocks modified: [32 - 47]
File contents in the original filesystem:
0 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
*
10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
40 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
*
60
File contents in the new filesystem:
0 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
*
10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
40 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
*
60