diff options
author | Gluster Ant <bugzilla-bot@gluster.org> | 2018-09-12 17:22:48 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-09-12 17:22:48 +0530 |
commit | 45a71c0548b6fd2c757aa2e7b7671a1411948894 (patch) | |
tree | 2a5a9b73bae47ab53a41166fd041a06612587f48 /xlators/mgmt/glusterd/src/glusterd-mountbroker.h | |
parent | be77dbbda692792335a8e9e7c02e0c281f003c40 (diff) |
Land clang-format changes
Change-Id: I6f5d8140a06f3c1b2d196849299f8d483028d33b
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-mountbroker.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-mountbroker.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mountbroker.h b/xlators/mgmt/glusterd/src/glusterd-mountbroker.h index 83267c203ca..319e05188b4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-mountbroker.h +++ b/xlators/mgmt/glusterd/src/glusterd-mountbroker.h @@ -9,34 +9,31 @@ */ #define MB_HIVE "mb_hive" -typedef enum { - SET_SUB = 1, - SET_SUPER, - SET_EQUAL, - SET_INTERSECT -} gf_setrel_t; +typedef enum { SET_SUB = 1, SET_SUPER, SET_EQUAL, SET_INTERSECT } gf_setrel_t; struct gf_mount_pattern { - char **components; - gf_setrel_t condition; - gf_boolean_t negative; + char **components; + gf_setrel_t condition; + gf_boolean_t negative; }; typedef struct gf_mount_pattern gf_mount_pattern_t; struct gf_mount_spec { - struct cds_list_head speclist; - char *label; - gf_mount_pattern_t *patterns; - size_t len; + struct cds_list_head speclist; + char *label; + gf_mount_pattern_t *patterns; + size_t len; }; typedef struct gf_mount_spec gf_mount_spec_t; +int +parse_mount_pattern_desc(gf_mount_spec_t *mspec, char *pdesc); -int parse_mount_pattern_desc (gf_mount_spec_t *mspec, char *pdesc); +int +make_georep_mountspec(gf_mount_spec_t *mspec, const char *volname, char *user); +int +make_ghadoop_mountspec(gf_mount_spec_t *mspec, const char *volname, char *user, + char *server); -int make_georep_mountspec (gf_mount_spec_t *mspec, const char *volname, - char *user); -int make_ghadoop_mountspec (gf_mount_spec_t *mspec, const char *volname, - char *user, char *server); - -int glusterd_do_mount (char *label, dict_t *argdict, char **path, int *op_errno); +int +glusterd_do_mount(char *label, dict_t *argdict, char **path, int *op_errno); |