From 09e3317a433add776d6539abcd7cf4f00ca984e5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 26 Jun 2022 19:57:21 -0600 Subject: add scripts --- scripts/diff-dump-tree.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/diff-dump-tree.sh (limited to 'scripts/diff-dump-tree.sh') 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) -- cgit v1.2.3-54-g00ecf