Debian Codegraph @

xlators/mgmt/glusterd/src/glusterd-gfproxyd-svc-helper.h

raw symbols SCIP
1 /*
2 Copyright (c) 2016 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
11 #ifndef _GLUSTERD_GFPROXYD_SVC_HELPER_H_
12 #define _GLUSTERD_GFPROXYD_SVC_HELPER_H_
13
14 #include "glusterd.h"
15
16 void
17 glusterd_svc_build_gfproxyd_rundir(glusterd_volinfo_t *volinfo, char *path,
18 int path_len);
19
20 void
21 glusterd_svc_build_gfproxyd_socket_filepath(glusterd_volinfo_t *volinfo,
22 char *path, int path_len);
23
24 void
25 glusterd_svc_build_gfproxyd_pidfile(glusterd_volinfo_t *volinfo, char *path,
26 int path_len);
27
28 void
29 glusterd_svc_build_gfproxyd_volfile_path(glusterd_volinfo_t *volinfo,
30 char *path, int path_len);
31
32 void
33 glusterd_svc_build_gfproxyd_logdir(char *logdir, char *volname, size_t len);
34
35 void
36 glusterd_svc_build_gfproxyd_logfile(char *logfile, char *logdir, size_t len);
37
38 int
39 glusterd_svc_check_gfproxyd_volfile_identical(char *svc_name,
40 glusterd_volinfo_t *volinfo,
41 gf_boolean_t *identical);
42 int
43 glusterd_svc_check_gfproxyd_topology_identical(char *svc_name,
44 glusterd_volinfo_t *volinfo,
45 gf_boolean_t *identical);
46 int
47 glusterd_is_gfproxyd_enabled(glusterd_volinfo_t *volinfo);
48
49 glusterd_volinfo_t *
50 glusterd_gfproxyd_volinfo_from_svc(glusterd_svc_t *svc);
51 #endif