From b361cc1ce3ef431d6aa53003b465ef323db7e3fc Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Wed, 15 Feb 2017 16:20:49 +0530 Subject: cli: cart off unwanted output from create command The response of below sub-operations as part of create are undesired $ targetcli set global auto_add_default_portal=false $ targetcli / saveconfig $ targetcli set attributes generate_node_acls=1 demo_mode_write_protect=0 Hence redirecting them to '/dev/null' This patch also fix a bug in the previous patch i.e. missed inverting [!] function return in if() Signed-off-by: Prasanna Kumar Kalever --- utils/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/common.h') 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 -- cgit