From a40e81b3b629198a4c30ad18f7544c7d513da287 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 28 Aug 2022 11:44:08 -0600 Subject: btrfs: Rework TreePath to allow correctly checking the owner tree --- lib/btrfsprogs/btrfsinspect/print_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/btrfsprogs/btrfsinspect') diff --git a/lib/btrfsprogs/btrfsinspect/print_tree.go b/lib/btrfsprogs/btrfsinspect/print_tree.go index 4dd03c4..1568245 100644 --- a/lib/btrfsprogs/btrfsinspect/print_tree.go +++ b/lib/btrfsprogs/btrfsinspect/print_tree.go @@ -109,7 +109,7 @@ func printTree(ctx context.Context, out io.Writer, fs *btrfs.FS, treeID btrfs.Ob return nil }, Item: func(path btrfs.TreePath, item btrfs.Item) error { - i := path.Node(-1).ItemIdx + i := path.Node(-1).FromItemIdx bs, _ := binstruct.Marshal(item.Body) itemSize := uint32(len(bs)) itemOffset -= itemSize -- cgit v1.2.3-2-g168b