summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 795b1434a..3b8780ffe 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -120,16 +120,25 @@ start_glusterfs ()
fi
cmd_line=$(echo "$cmd_line $mount_point");
+ err=0;
$cmd_line;
# retry the failover
if [ $? != "0" ]; then
+ err=1;
if [ -n "$cmd_line1" ]; then
cmd_line1=$(echo "$cmd_line1 $mount_point");
$cmd_line1
+ if [ $? != "0"]; then
+ err=1;
+ fi
fi
fi
+ if [ $err -eq "1" ]; then
+ echo "Mount failed. Please check the log file for more details."
+ exit 1;
+ fi
}
usage ()