summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src
diff options
context:
space:
mode:
authorHari Gowtham <hgowtham@redhat.com>2018-06-01 12:21:18 +0530
committerAmar Tumballi <amarts@redhat.com>2018-07-21 03:32:53 +0000
commitc0e76377d0fc47aa66f35ea70a4793731ebbd40c (patch)
treed899f0dab02460f69708c80365a00cb98fa647e2 /xlators/features/quota/src
parent8d7be4ac0cf5ace9de3f340f411f1aed21f96414 (diff)
quota: new volume set option to track of quota in GD2
quota enable as volume set needs a new option to keep track of it. Bugzilla ID:1600812 Change-Id: Ib8d770936bafe859f80e717409bd861760090e59 fixes: bz#1600812 Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
Diffstat (limited to 'xlators/features/quota/src')
-rw-r--r--xlators/features/quota/src/quota.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index cd7f0147d75..54414025a95 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -5332,6 +5332,16 @@ struct xlator_dumpops dumpops = {
.priv = quota_priv_dump,
};
struct volume_options options[] = {
+ {.key = {"enable"},
+ .type = GF_OPTION_TYPE_BOOL,
+ .default_value = "off",
+ .description = "enable is the volume option that can be used "
+ "to turn on quota.",
+ .op_version = {1},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
+ .level = OPT_STATUS_BASIC,
+ .tags = {},
+ },
{.key = {"deem-statfs"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "on",