From: johann Date: Fri, 23 Nov 2007 08:42:57 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~960 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ad8a16dc6763acf1e86f28faaa3818724f9c1b10;p=fs%2Flustre-release.git Branch b1_6 b=14022 i=tianzy i=andrew By default, enable/disable quotas for both user & group. --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 2c0d8fa..fa0f9e6 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -1188,6 +1188,8 @@ static int lfs_quotaon(int argc, char **argv) if (qctl.qc_type) qctl.qc_type--; + else /* by default, enable quota for both user & group */ + qctl.qc_type = 0x02; if (argc == optind) return CMD_HELP; @@ -1235,6 +1237,8 @@ static int lfs_quotaoff(int argc, char **argv) if (qctl.qc_type) qctl.qc_type--; + else /* by default, disable quota for both user & group */ + qctl.qc_type = 0x02; if (argc == optind) return CMD_HELP;