diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-07 04:02:22 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-08 00:16:02 -0600 |
commit | 361e24ef2f568fe286f7fcc642e1cc8e626f4a88 (patch) | |
tree | c628128cdb702fefd05ca4f2aa84719fbe03d226 /cmd/btrfs-ls-trees/main.go | |
parent | 22c32850798c264b6a20539b9cd1699228368ce9 (diff) |
clear-bad-nodes: support root nodes
Diffstat (limited to 'cmd/btrfs-ls-trees/main.go')
-rw-r--r-- | cmd/btrfs-ls-trees/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/btrfs-ls-trees/main.go b/cmd/btrfs-ls-trees/main.go index eb4fef5..a444e34 100644 --- a/cmd/btrfs-ls-trees/main.go +++ b/cmd/btrfs-ls-trees/main.go @@ -38,7 +38,7 @@ func Main(imgfilenames ...string) (err error) { var treeErrCnt int var treeItemCnt map[btrfsitem.Type]int btrfsmisc.WalkFS(fs, btrfsmisc.WalkFSHandler{ - PreTree: func(name string, laddr btrfsvol.LogicalAddr) { + PreTree: func(name string, _ btrfs.ObjID, laddr btrfsvol.LogicalAddr) { treeErrCnt = 0 treeItemCnt = make(map[btrfsitem.Type]int) fmt.Printf("tree laddr=%v name=%q\n", laddr, name) @@ -53,7 +53,7 @@ func Main(imgfilenames ...string) (err error) { return nil }, }, - PostTree: func(name string, laddr btrfsvol.LogicalAddr) { + PostTree: func(name string, _ btrfs.ObjID, laddr btrfsvol.LogicalAddr) { totalItems := 0 for _, cnt := range treeItemCnt { totalItems += cnt |