@@ -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.
@@ -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;
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(-)