diff options
author | Junaid <junaid@gluster.com> | 2011-06-29 20:41:27 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-30 02:59:06 -0700 |
commit | 7388f9f5910c0c69039a1476d902b48dda98b394 (patch) | |
tree | d563c89504a8e2e8c5e0afb3c259f72766bf30f2 /xlators | |
parent | 7cd21dec47426e32be9f4548f4ec716b0575867e (diff) |
mgmt/glusterd: 'Quota' use quota-crawl.log to store logs of maintainence mount.
Allow to set limits even when quota is disabled.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2620 (CLI improvements in quota)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2620
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index e92cb6f7726..2ef853bfeef 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -4941,7 +4941,10 @@ glusterd_quota_initiate_fs_crawl (glusterd_conf_t *priv, char *volname) runinit (&runner); runner_add_args (&runner, GFS_PREFIX"/sbin/glusterfs", "-s", - "localhost", "--volfile-id", volname, mountdir, NULL); + "localhost", "--volfile-id", volname, "-l", + DEFAULT_LOG_FILE_DIRECTORY"/quota-crawl.log", + mountdir, NULL); + ret = runner_run_reuse (&runner); if (ret == -1) { runner_log (&runner, "glusterd", GF_LOG_DEBUG, "command failed"); @@ -5207,13 +5210,6 @@ glusterd_quota_limit_usage (glusterd_volinfo_t *volinfo, dict_t *dict, char **op GF_VALIDATE_OR_GOTO ("glusterd", volinfo, out); GF_VALIDATE_OR_GOTO ("glusterd", op_errstr, out); - ret = glusterd_check_if_quota_trans_enabled (volinfo); - if (ret == -1) { - *op_errstr = gf_strdup ("Quota is disabled, " - "please enable to set limit"); - goto out; - } - ret = glusterd_volinfo_get (volinfo, VKEY_FEATURES_LIMIT_USAGE, "a_limits); if (ret) { |