diff options
Diffstat (limited to 'utils/common.h')
-rw-r--r-- | utils/common.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/utils/common.h b/utils/common.h index c544029..c5ec334 100644 --- a/utils/common.h +++ b/utils/common.h @@ -14,25 +14,28 @@ # include "utils.h" -# define GB_LOGDIR DATADIR "/log/gluster-block" -# define GB_INFODIR DATADIR "/run" +# define GB_LOGDIR DATADIR "/log/gluster-block" +# define GB_INFODIR DATADIR "/run" -# define GB_LOCK_FILE GB_INFODIR "/gluster-blockd.lock" -# define GB_UNIX_ADDRESS GB_INFODIR "/gluster-blockd.socket" -# define GB_TCP_PORT 24006 +# define GB_LOCK_FILE GB_INFODIR "/gluster-blockd.lock" +# define GB_UNIX_ADDRESS GB_INFODIR "/gluster-blockd.socket" +# define GB_TCP_PORT 24006 -# define DAEMON_LOG_FILE GB_LOGDIR "/gluster-blockd.log" -# define CLI_LOG_FILE GB_LOGDIR "/gluster-block-cli.log" -#define DEVNULLPATH "/dev/null" +# define DAEMON_LOG_FILE GB_LOGDIR "/gluster-blockd.log" +# define CLI_LOG_FILE GB_LOGDIR "/gluster-block-cli.log" +#define DEVNULLPATH "/dev/null" -# define GFAPI_LOG_FILE GB_LOGDIR "/gluster-block-gfapi.log" -# define GFAPI_LOG_LEVEL 7 +# define GFAPI_LOG_FILE GB_LOGDIR "/gluster-block-gfapi.log" +# define GFAPI_LOG_LEVEL 7 -# define GB_METADIR "/block-meta" -# define GB_STOREDIR "/block-store" -# define GB_TXLOCKFILE "meta.lock" +# define CONFIGSHELL_LOG_FILE GB_LOGDIR "/gluster-block-configshell.log" + +# define GB_METADIR "/block-meta" +# define GB_STOREDIR "/block-store" +# define GB_TXLOCKFILE "meta.lock" + +# define SUN_PATH_MAX (sizeof(struct sockaddr_un) - sizeof(unsigned short int)) /*sun_family*/ -# define SUN_PATH_MAX (sizeof(struct sockaddr_un) - sizeof(unsigned short int)) /*sun_family*/ ssize_t glusterBlockCreateParseSize(const char *dom, char *value); |