diff options
-rw-r--r-- | daemon/gluster-blockd.c | 2 | ||||
-rw-r--r-- | rpc/block_svc_routines.c | 6 | ||||
-rw-r--r-- | utils/common.h | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/daemon/gluster-blockd.c b/daemon/gluster-blockd.c index 24fde90..6fb9c90 100644 --- a/daemon/gluster-blockd.c +++ b/daemon/gluster-blockd.c @@ -154,7 +154,7 @@ main (int argc, char **argv) pthread_t cli_thread; pthread_t server_thread; - if (glusterBlockLogdirCreate()) { + if (!glusterBlockLogdirCreate()) { return -1; } diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c index f77fbb3..fdcc8c0 100644 --- a/rpc/block_svc_routines.c +++ b/rpc/block_svc_routines.c @@ -25,9 +25,9 @@ # define GLFS_PATH "/backstores/user:glfs" # define TARGETCLI_GLFS "targetcli "GLFS_PATH # define TARGETCLI_ISCSI "targetcli /iscsi" -# define TARGETCLI_GLOBALS "targetcli set global auto_add_default_portal=false" -# define TARGETCLI_SAVE "targetcli / saveconfig" -# define ATTRIBUTES "generate_node_acls=1 demo_mode_write_protect=0" +# define TARGETCLI_GLOBALS "targetcli set global auto_add_default_portal=false > " DEVNULLPATH +# define TARGETCLI_SAVE "targetcli / saveconfig > " DEVNULLPATH +# define ATTRIBUTES "generate_node_acls=1 demo_mode_write_protect=0 > " DEVNULLPATH # define IQN_PREFIX "iqn.2016-12.org.gluster-block:" # define MSERVER_DELIMITER "," diff --git a/utils/common.h b/utils/common.h index 90702b9..273c0fe 100644 --- a/utils/common.h +++ b/utils/common.h @@ -22,6 +22,7 @@ # 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 |