diff options
author | Kaushal M <kaushal@redhat.com> | 2017-10-13 16:53:51 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-11-15 10:01:34 +0000 |
commit | 306344a1cc1d2569a00b9f1926a944a7790a9222 (patch) | |
tree | e3e71d0227bf0fe18495b1385a345c15c9a604ed /libglusterfs | |
parent | 5f5d166e89367dc0d72fa02ca4e8ca2d28a06cdd (diff) |
libglusterfs/options: Add new member 'setkey' to xlator options
The 'setkey' will be used as the key by GD2 when setting the option
during volgen. 'setkey' also supports using varstrings.
This is mainly to be used for options, which use a different key for
'volume set' and in volfiles. For eg. the 'auth.*' options of
protocol/server.
The protocol/server xlator has been updated to make use of this for the
auth.allow and auth.reject options.
Updates #302
Change-Id: I1fd2fd69625c9db48595bd3f494c221625255169
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/options.h b/libglusterfs/src/options.h index af6a651a41d..da361524031 100644 --- a/libglusterfs/src/options.h +++ b/libglusterfs/src/options.h @@ -116,6 +116,10 @@ typedef struct volume_options { * TODO: See todo above for option_validation_fn */ /* option_validation_fn validate_fn; */ + /* This is actual key that should be set in the options dict. Can + * contain varstrings + */ + char *setkey; } volume_option_t; |