diff options
-rwxr-xr-x | scripts/diff-dump-tree.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/diff-dump-tree.sh b/scripts/diff-dump-tree.sh index 42a3ec0..60ab4d3 100755 --- a/scripts/diff-dump-tree.sh +++ b/scripts/diff-dump-tree.sh @@ -13,5 +13,11 @@ set -e make ) diff -u \ - <(../btrfs-progs/btrfs inspect dump-tree --noscan --csum-items ../scratch/new.img | sed -e 's/ UNKNOWN.0 / UNTYPED /g' -e 's/\b18446744073709551615\b/-1/g') \ - <(go run ./cmd/btrfs-rec/ inspect dump-trees --pv=../scratch/new.img) + <(../btrfs-progs/btrfs inspect dump-tree --noscan --csum-items ../scratch/new.img | + sed -e 's/ UNKNOWN.0 / UNTYPED /g' \ + -e 's/\b18446744073709551615\b/-1/g' \ + ) \ + <(go run ./cmd/btrfs-rec/ inspect dump-trees --pv=../scratch/new.img | + sed -E \ + -e 's/([0-9]),/\1/g' \ + ) |