summaryrefslogtreecommitdiff
path: root/scripts/diff-dump-tree.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/diff-dump-tree.sh')
-rwxr-xr-xscripts/diff-dump-tree.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/diff-dump-tree.sh b/scripts/diff-dump-tree.sh
new file mode 100755
index 0000000..588242f
--- /dev/null
+++ b/scripts/diff-dump-tree.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+diff -u \
+ <(../btrfs-progs/btrfs inspect dump-tree --noscan ../scratch/new.img | sed -e 's/ UNKNOWN.0 / UNTYPED /g' -e 's/\b18446744073709551615\b/-1/g') \
+ <(go run ./cmd/btrfs-dump-tree/ ../scratch/new.img)