From 3acca04bb629e0f898f022fbbcaad78815aaaee3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 14 Jul 2022 01:30:19 -0600 Subject: have rebuilding the mappings use the scan-for-nodes result --- cmd/btrfs-rec/inspect_scanfornodes.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/btrfs-rec/inspect_scanfornodes.go') 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) }, }) -- cgit v1.2.3-2-g168b