From 306344a1cc1d2569a00b9f1926a944a7790a9222 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Fri, 13 Oct 2017 16:53:51 +0530 Subject: 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 --- libglusterfs/src/options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libglusterfs/src') 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; -- cgit