"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/mgmt/glusterd/src/glusterd-mountbroker.h" (16 Sep 2020, 1082 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-mountbroker.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2    Copyright (c) 2011-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 #define MB_HIVE "mb_hive"
   11 
   12 typedef enum { SET_SUB = 1, SET_SUPER, SET_EQUAL, SET_INTERSECT } gf_setrel_t;
   13 
   14 struct gf_mount_pattern {
   15     char **components;
   16     gf_setrel_t condition;
   17     gf_boolean_t negative;
   18 };
   19 typedef struct gf_mount_pattern gf_mount_pattern_t;
   20 
   21 struct gf_mount_spec {
   22     struct cds_list_head speclist;
   23     char *label;
   24     gf_mount_pattern_t *patterns;
   25     size_t len;
   26 };
   27 typedef struct gf_mount_spec gf_mount_spec_t;
   28 
   29 int
   30 parse_mount_pattern_desc(gf_mount_spec_t *mspec, char *pdesc);
   31 
   32 int
   33 make_georep_mountspec(gf_mount_spec_t *mspec, const char *volname, char *user,
   34                       char *logdir);
   35 
   36 int
   37 glusterd_do_mount(char *label, dict_t *argdict, char **path, int *op_errno);