summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_lstrees.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/btrfs-rec/inspect_lstrees.go')
-rw-r--r--cmd/btrfs-rec/inspect_lstrees.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/btrfs-rec/inspect_lstrees.go b/cmd/btrfs-rec/inspect_lstrees.go
index b55acf0..0a98369 100644
--- a/cmd/btrfs-rec/inspect_lstrees.go
+++ b/cmd/btrfs-rec/inspect_lstrees.go
@@ -44,6 +44,11 @@ func init() {
treeItemCnt[typ] = treeItemCnt[typ] + 1
return nil
},
+ BadItem: func(_ btrfs.TreePath, item btrfs.Item) error {
+ typ := item.Key.ItemType
+ treeItemCnt[typ] = treeItemCnt[typ] + 1
+ return nil
+ },
},
PostTree: func(_ string, _ btrfs.ObjID) {
totalItems := 0