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 --- daemon/gluster-blockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon') 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; } -- cgit