From 0af7b774c85b184fcb8661b19c8925c0d0b74f2a Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Mon, 20 Apr 2015 10:08:03 +0530 Subject: 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: 1226224 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/10299 Tested-by: Gluster Build System Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Raghavendra G Tested-by: Raghavendra G Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/11000 Tested-by: NetBSD Build System --- xlators/mgmt/glusterd/src/glusterd-quota.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/mgmt') 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, -- cgit