summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_scanfornodes.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-14 01:30:19 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-14 01:30:19 -0600
commit3acca04bb629e0f898f022fbbcaad78815aaaee3 (patch)
tree9afdd5b160ea9199ac4ed0fce8d8389155db9658 /cmd/btrfs-rec/inspect_scanfornodes.go
parent7153fc9379dd5910c688925ccd2e0a03b9551a6d (diff)
have rebuilding the mappings use the scan-for-nodes result
Diffstat (limited to 'cmd/btrfs-rec/inspect_scanfornodes.go')
-rw-r--r--cmd/btrfs-rec/inspect_scanfornodes.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/btrfs-rec/inspect_scanfornodes.go b/cmd/btrfs-rec/inspect_scanfornodes.go
index 3eee46c..9dbc3a5 100644
--- a/cmd/btrfs-rec/inspect_scanfornodes.go
+++ b/cmd/btrfs-rec/inspect_scanfornodes.go
@@ -26,7 +26,8 @@ func init() {
Use: "scan-for-nodes",
Short: "Scan devices for (potentially lost) nodes",
Long: "" +
- "The found information is printed as JSON on stdout.\n" +
+ "The found information is printed as JSON on stdout, and can\n" +
+ "be read by `btrfs-rec inspect rebuild-mappings`.\n" +
"\n" +
"This information is mostly useful for rebuilding a broken\n" +
"chunk/dev-extent/blockgroup trees, but can also have some\n" +
@@ -63,7 +64,7 @@ func init() {
return err
}
- dlog.Info(ctx, "Serializing results...")
+ dlog.Info(ctx, "Writing scan results to stdout...")
return json.NewEncoder(os.Stdout).Encode(results)
},
})