diff mbox series

[2/3] btrfs-progs: qgroup: make --rescan as the default behavior for assign

Message ID 20180806060008.9556-3-wqu@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: Minor qgroup subcommand usage update | expand

Commit Message

Qu Wenruo Aug. 6, 2018, 6 a.m. UTC
Even though we have --rescan option, it still needs user to manually
specify it.

However even some developer is not aware of the option, it makes even
less sense for end-user.

So make it the default behavior.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 Documentation/btrfs-qgroup.asciidoc | 4 ++--
 cmds-qgroup.c                       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/btrfs-qgroup.asciidoc b/Documentation/btrfs-qgroup.asciidoc
index 3108457cc8e1..fee173860000 100644
--- a/Documentation/btrfs-qgroup.asciidoc
+++ b/Documentation/btrfs-qgroup.asciidoc
@@ -47,8 +47,8 @@  identified by <path>.
 `Options`
 +
 --rescan::::
-Automatically schedule quota rescan if the new qgroup assignment leads to
-quota inconsistency.
+(Default) Automatically schedule quota rescan if the new qgroup assignment
+leads to quota inconsistency.
 --no-rescan::::
 Explicitly ask not to do a rescan.
 
diff --git a/cmds-qgroup.c b/cmds-qgroup.c
index 7a505443d271..094e5174fd7f 100644
--- a/cmds-qgroup.c
+++ b/cmds-qgroup.c
@@ -40,7 +40,7 @@  static int _cmd_qgroup_assign(int assign, int argc, char **argv,
 {
 	int ret = 0;
 	int fd;
-	bool rescan = false;
+	bool rescan = true;
 	char *path;
 	struct btrfs_ioctl_qgroup_assign_args args;
 	DIR *dirstream = NULL;