summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-11 22:40:40 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 16:17:27 -0700
commit1f3a1a474ac41f427e4c5b0d27d2c85a3cfaa65e (patch)
treeffbdcba3e17ba4a5bd8947c3830626c0d9fae145 /scripts
parent28549f676e040c96bfae575535dea7e0ecdf0f41 (diff)
btrfsprim: Have ObjID.Format() take the tree ID, not the item type
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/diff-dump-tree.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/diff-dump-tree.sh b/scripts/diff-dump-tree.sh
index 60ab4d3..3d560d9 100755
--- a/scripts/diff-dump-tree.sh
+++ b/scripts/diff-dump-tree.sh
@@ -16,6 +16,8 @@ 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' \
+ -e 's/INODE_REF 6)/INODE_REF ROOT_TREE_DIR)/g' \
+ -e 's/ROOT_BACKREF 5)/ROOT_BACKREF FS_TREE)/g' \
) \
<(go run ./cmd/btrfs-rec/ inspect dump-trees --pv=../scratch/new.img |
sed -E \