* [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
* Re: [PATCH] btrfs-progs: tune: fix btrfstune --help for -m -M option
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
1 sibling, 0 replies; 3+ messages in thread
From: Qu Wenruo @ 2024-05-16 8:28 UTC (permalink / raw)
To: Anand Jain, linux-btrfs
在 2024/5/16 13:49, Anand Jain 写道:
> 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>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> 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"),
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs-progs: tune: fix btrfstune --help for -m -M option
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
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-05-17 15:37 UTC (permalink / raw)
To: Anand Jain; +Cc: linux-btrfs
On Thu, May 16, 2024 at 12:19:03PM +0800, Anand Jain wrote:
> 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>
Added to devel, thanks.
^ permalink raw reply [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