diff options
author | Prashanth Pai <ppai@redhat.com> | 2018-02-09 09:27:03 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-02-16 16:16:25 +0000 |
commit | 664b946496368f625b5a15646b5aa791078055ef (patch) | |
tree | 0a574ce8ed3fee1b6d4fa6811def116ac8d170f6 /rpc/rpc-lib/src | |
parent | b313d97faa766443a7f8128b6e19f3d2f1b267dd (diff) |
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 <ppai@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src')
-rw-r--r-- | rpc/rpc-lib/src/protocol-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |