From bc04046f0e0c686ef965c2b4ba23cfcab4e1e15b Mon Sep 17 00:00:00 2001 From: Sanoj Unnikrishnan Date: Thu, 31 Aug 2017 16:49:40 +0530 Subject: features/quota: Add new fields to translator options for GD2 alert-time, soft timeout, hard timeout, default soft limit and deem-statfs will be settable through volume set command. hence marked as settable. Other options are used only via quota commands. Updates #302 Change-Id: I02d258cc3aa7fe58ccbadd59441cce64cfd9ba6e Signed-off-by: Sanoj Unnikrishnan --- xlators/features/marker/src/marker.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'xlators/features/marker/src/marker.c') diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 36cfb34f069..659ca890066 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -3526,12 +3526,31 @@ struct xlator_cbks cbks = { }; struct volume_options options[] = { - {.key = {"volume-uuid"}}, + {.key = {"volume-uuid"}, + .default_value = "{{ volume.id }}"}, {.key = {"timestamp-file"}}, - {.key = {"quota"}}, - {.key = {"inode-quota"} }, - {.key = {"xtime"}}, - {.key = {"gsync-force-xtime"}}, - {.key = {"quota-version"} }, + {.key = {"quota"}, + .op_version = {1}, + .flags = OPT_FLAG_NONE, + .tags = {}, + }, + {.key = {"inode-quota"}, + .op_version = {1}, + .flags = OPT_FLAG_NONE, + .tags = {}, + }, + {.key = {"xtime"}, + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_FORCE, + .tags = {}, + }, + {.key = {"gsync-force-xtime"}, + .op_version = {2}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_FORCE, + .tags = {}, + }, + {.key = {"quota-version"}, + .flags = OPT_FLAG_NONE, + }, {.key = {NULL}} }; -- cgit