diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-02 16:25:03 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-02 16:43:01 -0600 |
commit | 9ddcd2c3ed2f85247161c5ffa653f33e6a01a9cd (patch) | |
tree | 5d673cf90f37ae7e75b1b4bbe41bc700cfe98c1f /cmd/btrfs-ls-trees/main.go | |
parent | eab4dbebf66fa92597a2804c39eb4a4670f5e2ca (diff) |
move things around
Diffstat (limited to 'cmd/btrfs-ls-trees/main.go')
-rw-r--r-- | cmd/btrfs-ls-trees/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/btrfs-ls-trees/main.go b/cmd/btrfs-ls-trees/main.go index 395ef07..eb4fef5 100644 --- a/cmd/btrfs-ls-trees/main.go +++ b/cmd/btrfs-ls-trees/main.go @@ -8,6 +8,7 @@ import ( "lukeshu.com/btrfs-tools/pkg/btrfs" "lukeshu.com/btrfs-tools/pkg/btrfs/btrfsitem" + "lukeshu.com/btrfs-tools/pkg/btrfs/btrfsvol" "lukeshu.com/btrfs-tools/pkg/btrfsmisc" "lukeshu.com/btrfs-tools/pkg/util" ) @@ -37,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 btrfs.LogicalAddr) { + PreTree: func(name string, laddr btrfsvol.LogicalAddr) { treeErrCnt = 0 treeItemCnt = make(map[btrfsitem.Type]int) fmt.Printf("tree laddr=%v name=%q\n", laddr, name) @@ -52,7 +53,7 @@ func Main(imgfilenames ...string) (err error) { return nil }, }, - PostTree: func(name string, laddr btrfs.LogicalAddr) { + PostTree: func(name string, laddr btrfsvol.LogicalAddr) { totalItems := 0 for _, cnt := range treeItemCnt { totalItems += cnt |