"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/mgmt/glusterd/src/glusterd-geo-rep.h" (16 Sep 2020, 1710 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "glusterd-geo-rep.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2    Copyright (c) 2006-2012 Red Hat, Inc. <http://www.redhat.com>
    3    This file is part of GlusterFS.
    4 
    5    This file is licensed to you under your choice of the GNU Lesser
    6    General Public License, version 3 or any later version (LGPLv3 or
    7    later), or the GNU General Public License, version 2 (GPLv2), in all
    8    cases as published by the Free Software Foundation.
    9 */
   10 #ifndef _GLUSTERD_GEO_REP_H_
   11 #define _GLUSTERD_GEO_REP_H_
   12 
   13 #ifndef GSYNC_CONF_TEMPLATE
   14 #define GSYNC_CONF_TEMPLATE GEOREP "/gsyncd_template.conf"
   15 #endif
   16 
   17 /* <slave host>::<slave volume> */
   18 #define SLAVE_URL_INFO_MAX (_POSIX_HOST_NAME_MAX + GD_VOLUME_NAME_MAX + 3)
   19 
   20 /* slave info format:
   21  * <master host uuid>:ssh://{<slave_user>@}<slave host>::<slave volume> \
   22  * :<slave volume uuid> */
   23 #define VOLINFO_SLAVE_URL_MAX                                                  \
   24     (LOGIN_NAME_MAX + (2 * GF_UUID_BUF_SIZE) + SLAVE_URL_INFO_MAX + 10)
   25 
   26 typedef struct glusterd_gsync_status_temp {
   27     dict_t *rsp_dict;
   28     glusterd_volinfo_t *volinfo;
   29     char *node;
   30 } glusterd_gsync_status_temp_t;
   31 
   32 typedef struct gsync_status_param {
   33     glusterd_volinfo_t *volinfo;
   34     int is_active;
   35 } gsync_status_param_t;
   36 
   37 int
   38 gsync_status(char *master, char *slave, char *conf_path, int *status,
   39              gf_boolean_t *is_template_in_use);
   40 
   41 void
   42 glusterd_check_geo_rep_configured(glusterd_volinfo_t *volinfo,
   43                                   gf_boolean_t *flag);
   44 int
   45 _get_slave_status(dict_t *dict, char *key, data_t *value, void *data);
   46 int
   47 glusterd_check_geo_rep_running(gsync_status_param_t *param, char **op_errstr);
   48 
   49 int
   50 glusterd_get_gsync_status_mst(glusterd_volinfo_t *volinfo, dict_t *rsp_dict,
   51                               char *node);
   52 #endif