From 008d146192f818aa8c05b022dfc358b3c5ffffab Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Mon, 6 Jan 2025 09:11:17 +1030 Subject: [PATCH] btrfs-progs: tune: fix simple quota help string and documentation The option of "-q" is not working, instead only the longer option is supported. And add the missing "--enable-simple-quota" option of man page for btrfstune. Reported-by: Anand Jain Signed-off-by: Qu Wenruo --- Documentation/btrfstune.rst | 7 +++++++ tune/main.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfstune.rst b/Documentation/btrfstune.rst index da49674176..cdaa3faa8d 100644 --- a/Documentation/btrfstune.rst +++ b/Documentation/btrfstune.rst @@ -42,6 +42,13 @@ OPTIONS Convert to free-space-tree feature (v2 of space cache). +--enable-simple-quota + (since kernel 6.7) + + Convert to simple-quota feature. This is an alternative to qgroups + with a smaller performance impact but no notion of shared vs. exclusive + usage. + -f Allow dangerous changes, e.g. clear the seeding flag or change fsid. Make sure that you are aware of the dangers. diff --git a/tune/main.c b/tune/main.c index d246b970e8..45417fb978 100644 --- a/tune/main.c +++ b/tune/main.c @@ -103,7 +103,7 @@ static const char * const tune_usage[] = { OPTLINE("-x", "enable skinny metadata extent refs (mkfs: skinny-metadata)"), OPTLINE("-n", "enable no-holes feature (mkfs: no-holes, more efficient sparse file representation)"), OPTLINE("-S <0|1>", "set/unset seeding status of a device"), - OPTLINE("-q", "enable simple quotas on the file system. (mkfs: squota)"), + OPTLINE("--enable-simple-quota", "enable simple quotas on the file system. (mkfs: squota)"), OPTLINE("--convert-to-block-group-tree", "convert filesystem to track block groups in " "the separate block-group-tree instead of extent tree (sets the incompat bit)"), OPTLINE("--convert-from-block-group-tree",