From c0e76377d0fc47aa66f35ea70a4793731ebbd40c Mon Sep 17 00:00:00 2001 From: Hari Gowtham Date: Fri, 1 Jun 2018 12:21:18 +0530 Subject: 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 --- xlators/features/quota/src/quota.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xlators/features/quota') 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", -- cgit