diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-30 05:20:42 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-30 05:20:42 -0600 |
commit | 44a5c07562d1650c85ed7e2135a3af51141c5aae (patch) | |
tree | e172085d4ed0b2ca1656623793fef92bca1dbbeb /cmd/btrfs-fsck/pass2.go | |
parent | f2a8c2bc094c882f20a0be933214b67b489d5e7e (diff) |
more
Diffstat (limited to 'cmd/btrfs-fsck/pass2.go')
-rw-r--r-- | cmd/btrfs-fsck/pass2.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/btrfs-fsck/pass2.go b/cmd/btrfs-fsck/pass2.go index 42060b5..8195737 100644 --- a/cmd/btrfs-fsck/pass2.go +++ b/cmd/btrfs-fsck/pass2.go @@ -11,9 +11,6 @@ import ( ) func pass2(fs *btrfs.FS, foundNodes map[btrfs.LogicalAddr]struct{}) { - if true { - return - } fmt.Printf("\nPass 2: orphaned nodes\n") visitedNodes := make(map[btrfs.LogicalAddr]struct{}) @@ -26,6 +23,10 @@ func pass2(fs *btrfs.FS, foundNodes map[btrfs.LogicalAddr]struct{}) { fmt.Printf("Pass 2: walk FS: error: %v\n", err) }) + if true { + return + } + orphanedNodes := make(map[btrfs.LogicalAddr]int) for foundNode := range foundNodes { if _, visited := visitedNodes[foundNode]; !visited { |