summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-17 02:05:51 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-17 02:05:51 -0600
commit4efa228eb104145bb0750fb68c0d9493dc5854d5 (patch)
tree1dbcbd104be9e1034037a2d43b5927b1b61c08d6 /cmd/btrfs-rec
parent4adcf5f67965bf355cc7e16ec11e2293c2506700 (diff)
parentf262c7bbc72796ae36b7e40dc38ab7167d138d5b (diff)
Merge branch 'lukeshu/rebuilt-v2-pt2-lax-parents'
Diffstat (limited to 'cmd/btrfs-rec')
-rw-r--r--cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go2
-rw-r--r--cmd/btrfs-rec/main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go b/cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go
index 77d56ae..aeb6751 100644
--- a/cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go
+++ b/cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go
@@ -85,7 +85,7 @@ func NewRebuilder(ctx context.Context, fs *btrfs.FS, nodeList []btrfsvol.Logical
o := &rebuilder{
scan: scanData,
}
- o.rebuilt = btrfsutil.NewRebuiltForrest(fs, scanData.Graph, forrestCallbacks{o})
+ o.rebuilt = btrfsutil.NewRebuiltForrest(fs, scanData.Graph, forrestCallbacks{o}, false)
return o, nil
}
diff --git a/cmd/btrfs-rec/main.go b/cmd/btrfs-rec/main.go
index 26857f0..ad768de 100644
--- a/cmd/btrfs-rec/main.go
+++ b/cmd/btrfs-rec/main.go
@@ -224,7 +224,7 @@ func _runWithReadableFS(wantNodeList bool, runE func(btrfs.ReadableFS, []btrfsvo
return err
}
- rfs = btrfsutil.NewRebuiltForrest(fs, graph, nil)
+ rfs = btrfsutil.NewRebuiltForrest(fs, graph, nil, true)
}
return runE(rfs, nodeList, cmd, args)