From 664b946496368f625b5a15646b5aa791078055ef Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Fri, 9 Feb 2018 09:27:03 +0530 Subject: Fetch backup volfile servers from glusterd2 Clients will request for a list of volfile servers from glusterd2 by setting a (optional) flag in GETSPEC RPC call. glusterd2 will check for the presence of this flag and accordingly return a list of glusterd2 servers in GETSPEC RPC reply. Currently, this list of servers returned only contains servers which have bricks belonging to the volume. See: https://github.com/gluster/glusterd2/issues/382 https://github.com/gluster/glusterfs/issues/351 Updates #351 Change-Id: I0eee3d0bf25a87627e562380ef73063926a16b81 Signed-off-by: Prashanth Pai --- rpc/rpc-lib/src/protocol-common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rpc') diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h index e922c890854..64723420445 100644 --- a/rpc/rpc-lib/src/protocol-common.h +++ b/rpc/rpc-lib/src/protocol-common.h @@ -325,6 +325,11 @@ enum gf_get_snapshot_info_type { }; typedef enum gf_get_snapshot_info_type gf_get_snapshot_info_type; +enum gf_getspec_flags_type { + GF_GETSPEC_FLAG_SERVERS_LIST = 1 +}; +typedef enum gf_getspec_flags_type gf_getspec_flags_type; + #define GLUSTER_HNDSK_PROGRAM 14398633 /* Completely random */ #define GLUSTER_HNDSK_VERSION 2 /* 0.0.2 */ -- cgit