summaryrefslogtreecommitdiff
path: root/scripts/diff-dump-tree.sh
blob: 42a3ec08addfebf7dd629e2604e07983d5538398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e
(
	cd ../btrfs-progs
	if ! test -f configure; then
		./autogen.sh
	fi
	if ! test -f config.status; then
		./configure \
			--disable-documentation \
			--enable-experimental
	fi
	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)