diff options
author | Sachin Pandit <spandit@redhat.com> | 2015-04-20 10:08:03 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-05-29 00:17:34 -0700 |
commit | 99eaa1a8255105687c78f8dda48c0a60023e1ffc (patch) | |
tree | fa3d0bc77c531c38d5b7c18f4798bde66ffa001c /xlators/mgmt/glusterd | |
parent | 3eaf21e3cc8cf481226d1ed495d7261b1acbb594 (diff) |
features/quota : Make "quota-deem-statfs" option "on" by default, when quota is enabled
As of now it is expected from user to set deem-statfs to "on" when
quota is enabled. Better to turn it "on" by default when quota is enabled.
Change-Id: I85e0b919b1bdb74ac21e256073eebcb55bcb8e2a
BUG: 1213364
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/10299
Tested-by: NetBSD Build System
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-quota.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-quota.c b/xlators/mgmt/glusterd/src/glusterd-quota.c index ff6ece9bbca..7238032b141 100644 --- a/xlators/mgmt/glusterd/src/glusterd-quota.c +++ b/xlators/mgmt/glusterd/src/glusterd-quota.c @@ -456,6 +456,15 @@ glusterd_quota_enable (glusterd_volinfo_t *volinfo, char **op_errstr, goto out; } + ret = dict_set_dynstr_with_alloc (volinfo->dict, + "features.quota-deem-statfs", + "on"); + if (ret) { + gf_log (this->name, GF_LOG_ERROR, "setting quota-deem-statfs" + "in volinfo failed"); + goto out; + } + *crawl = _gf_true; ret = glusterd_store_quota_config (volinfo, NULL, NULL, |