summaryrefslogtreecommitdiff
path: root/lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-08-29 21:19:18 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-08-30 21:29:19 -0600
commit461ca655ff576c81a78c6abd7f4ffa6cd6fae920 (patch)
tree4d108e0435768a9ea26b47135d1a4f6c95d60340 /lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go
parent96eb8d5f11ab6654d0f963be1777cb92493ee0ab (diff)
wip
Diffstat (limited to 'lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go')
-rw-r--r--lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go b/lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go
index db722a5..e5365c9 100644
--- a/lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go
+++ b/lib/btrfsprogs/btrfsinspect/rebuildnodes/rebuildnodes.go
@@ -36,12 +36,10 @@ func RebuildNodes(ctx context.Context, fs *btrfs.FS, nodeScanResults btrfsinspec
return nil, err
}
- dlog.Info(ctx, "Initializing nodes to re-build...")
rebuiltNodes, err := reInitBrokenNodes(ctx, nfs, nodeScanResults, foundRoots)
if err != nil {
return nil, err
}
- dlog.Infof(ctx, "Initialized %d nodes", len(rebuiltNodes))
dlog.Info(ctx, "Attaching lost+found nodes to rebuilt nodes...")
if err := reAttachNodes(ctx, nfs, foundRoots, rebuiltNodes); err != nil {
@@ -149,7 +147,7 @@ func getChunkTreeUUID(ctx context.Context, fs _FS) (btrfsprim.UUID, bool) {
}
type RebuiltNode struct {
- Err error
+ Err string
MinKey, MaxKey btrfsprim.Key
btrfstree.Node
}