From 9906bd585419a77259f192edb2fbf0fb8e04cf7f Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Mon, 17 Aug 2009 03:55:02 +0000 Subject: fuse: don't say "Success" when mount fails Signed-off-by: Anand V. Avati BUG: 219 (Error message incorrect when fuse_mount() fails) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=219 --- xlators/mount/fuse/src/fuse-bridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 296fd0799..9d358984b 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2737,9 +2737,10 @@ init (xlator_t *this_xl) priv->mount_point); } else { gf_log ("glusterfs-fuse", GF_LOG_DEBUG, - "fuse_mount() failed with error %s " + "fuse_mount() failed%s%s " "on mount point %s", - strerror (errno), + errno ? " with error " : "", + errno ? strerror (errno) : "", priv->mount_point); } } -- cgit