Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: tune: fix btrfstune --help for -m -M option
@ 2024-05-16  4:19 Anand Jain
  2024-05-16  8:28 ` Qu Wenruo
  2024-05-17 15:37 ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: Anand Jain @ 2024-05-16  4:19 UTC (permalink / raw)
  To: linux-btrfs

The -m | -M option for the btrfstune, sounds like metadata_uuid is being
changed which is wrong, the fsid is being changed the original fsid is
being copied into the metadata_uuid. So update the help.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 tune/main.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tune/main.c b/tune/main.c
index cfb5b5d6e323..7ae48fe6e80b 100644
--- a/tune/main.c
+++ b/tune/main.c
@@ -113,8 +113,12 @@ static const char * const tune_usage[] = {
 	"UUID changes:",
 	OPTLINE("-u", "rewrite fsid, use a random one"),
 	OPTLINE("-U UUID", "rewrite fsid to UUID"),
-	OPTLINE("-m", "change fsid in metadata_uuid to a random UUID incompat change, more lightweight than -u|-U)"),
-	OPTLINE("-M UUID", "change fsid in metadata_uuid to UUID"),
+	OPTLINE("-m", "change fsid to a random UUID, copy original fsid into "
+		      "metadata_uuid if it's not NULL. Incompat change "
+		      "(more lightweight than -u|-U)"),
+	OPTLINE("-M UUID", "change fsid to UUID, copy original fsid into "
+		      "metadata_uuid if it's not NULL. Incompat change "
+		      "(more lightweight than -u|-U)"),
 	"",
 	"General:",
 	OPTLINE("-f", "allow dangerous operations, make sure that you are aware of the dangers"),
-- 
2.39.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-17 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16  4:19 [PATCH] btrfs-progs: tune: fix btrfstune --help for -m -M option Anand Jain
2024-05-16  8:28 ` Qu Wenruo
2024-05-17 15:37 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox