diff options
author | Varun Shastry <vshastry@redhat.com> | 2013-02-13 18:00:04 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-19 16:59:59 -0800 |
commit | 5077242f1d17c9cc8f5233333dbdfe2f73e71e44 (patch) | |
tree | 09778f3295f3afed7718dd3c9ad0be90078e9bdc /xlators/mgmt/glusterd/src/glusterd-volume-set.c | |
parent | 2c8e3bcb4fc2e587762fc633525eb9c36257adec (diff) |
features/quota: Add option to consider the quota limit in statfs estimation
Adds an option, features.quota-deem-statfs (default off) to consider the
quota limits while calculating the volume stats.
Eg: Backend is of size 10GB and limit set on / is 5GB. If the option is off
df show actual size to be 10GB and when it is on df shows 5GB.
Change-Id: Ib30733bb69afecce1dea9d0491af89d551d214cc
BUG: 905425
Signed-off-by: Varun Shastry <vshastry@redhat.com>
Reviewed-on: http://review.gluster.org/4511
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index c063fc62fe1..5e7f013efff 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -582,6 +582,14 @@ struct volopt_map_entry glusterd_volopt_map[] = { .value = "0", .op_version = 1 }, + { .key = "features.quota-deem-statfs", + .voltype = "features/quota", + .option = "deem-statfs", + .value = "off", + .type = DOC, + .flags = 0, + .op_version = 2 + }, /* Marker xlator options */ { .key = VKEY_MARKER_XTIME, |