From bba3428e8f034802b4b5ceb772bde1285a65ee50 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 12 Jul 2022 17:01:13 -0600 Subject: Don't include the offset and size in btrfs.Item --- cmd/btrfs-rec/inspect_lstrees.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/btrfs-rec/inspect_lstrees.go') diff --git a/cmd/btrfs-rec/inspect_lstrees.go b/cmd/btrfs-rec/inspect_lstrees.go index e308b20..b55acf0 100644 --- a/cmd/btrfs-rec/inspect_lstrees.go +++ b/cmd/btrfs-rec/inspect_lstrees.go @@ -40,7 +40,7 @@ func init() { }, TreeWalkHandler: btrfs.TreeWalkHandler{ Item: func(_ btrfs.TreePath, item btrfs.Item) error { - typ := item.Head.Key.ItemType + typ := item.Key.ItemType treeItemCnt[typ] = treeItemCnt[typ] + 1 return nil }, -- cgit v1.2.3-2-g168b