diff options
author | Sanoj Unnikrishnan <sunnikri@redhat.com> | 2017-08-31 16:49:40 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-03-24 05:14:48 +0000 |
commit | bc04046f0e0c686ef965c2b4ba23cfcab4e1e15b (patch) | |
tree | 6e9b86fa1c99d6576743a04930395d1a5fb9d88b /xlators/features/marker | |
parent | d978ff0e3a0c365c794f069aa56364454b241f12 (diff) |
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 <sunnikri@redhat.com>
Diffstat (limited to 'xlators/features/marker')
-rw-r--r-- | xlators/features/marker/src/marker.c | 31 |
1 files changed, 25 insertions, 6 deletions
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}} }; |