summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_lstrees.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-12 17:01:13 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-12 17:01:13 -0600
commitbba3428e8f034802b4b5ceb772bde1285a65ee50 (patch)
tree7b56b8241385c4474c232ccb584bf07089e47e92 /cmd/btrfs-rec/inspect_lstrees.go
parent54ba669b644f13c158fcbbde76943543eaf66e0a (diff)
Don't include the offset and size in btrfs.Item
Diffstat (limited to 'cmd/btrfs-rec/inspect_lstrees.go')
-rw-r--r--cmd/btrfs-rec/inspect_lstrees.go2
1 files changed, 1 insertions, 1 deletions
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
},