From 76b72680017c836eff8805ea0339f7827ba3e561 Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Fri, 8 Aug 2014 15:54:03 +0530 Subject: mount: Verify mount failure in mount.glusterfs wrapper. The result of mount command execution is not checked properly, thus no proper message given for the end user. This patch fix the same. Bug Id: 1128165 Change-Id: I3882e34e840ed15b5ce48ed5e1ad51208e2be913 Signed-off-by: Humble Chirammal Reviewed-on: http://review.gluster.org/8438 Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- xlators/mount/fuse/utils/mount.glusterfs.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index cace3c247eb..c8c32c66eb6 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -297,6 +297,11 @@ start_glusterfs () cmd_line=$(echo "$cmd_line $mount_point"); $cmd_line; + if [ $? -ne 0 ]; then + warn "Mount failed. Please check the log file for more details." + exit 1; + fi + inode=$( ${getinode} $mount_point 2>/dev/null); # this is required if the stat returns error -- cgit