diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:04:32 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:34:30 -0600 |
commit | f1a212cddb8dc051c510327c365da42e30b23ab9 (patch) | |
tree | b83f1e9ed0effb995bc3ff04092c60dd9ecbfc93 /cmd/btrfs-fsck/pass2.go | |
parent | 2aa95c4e8748027c30dec3e89bb069dae14dfd3f (diff) |
dbg
Diffstat (limited to 'cmd/btrfs-fsck/pass2.go')
-rw-r--r-- | cmd/btrfs-fsck/pass2.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/btrfs-fsck/pass2.go b/cmd/btrfs-fsck/pass2.go index 2ffca0a..1f9e3c2 100644 --- a/cmd/btrfs-fsck/pass2.go +++ b/cmd/btrfs-fsck/pass2.go @@ -48,6 +48,8 @@ func walkFS(fs *btrfs.FS, cbs btrfs.WalkTreeHandler, errCb func(error)) { func pass2(fs *btrfs.FS, foundNodes map[btrfs.LogicalAddr]struct{}) { fmt.Printf("\nPass 2: orphaned nodes\n") + btrfs.Dbg = true + visitedNodes := make(map[btrfs.LogicalAddr]struct{}) walkFS(fs, btrfs.WalkTreeHandler{ Node: func(node *util.Ref[btrfs.LogicalAddr, btrfs.Node], err error) error { |