summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorHumble Chirammal <hchiramm@redhat.com>2014-08-08 15:54:03 +0530
committerAnand Avati <avati@redhat.com>2014-08-08 16:17:02 -0700
commit76b72680017c836eff8805ea0339f7827ba3e561 (patch)
tree4797235b1341108bef96aeca394a82868821535a /xlators/mount
parent84cfd657e50a436027000e6147982c5ca57e5e50 (diff)
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 <hchiramm@redhat.com> Reviewed-on: http://review.gluster.org/8438 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/mount')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in5
1 files changed, 5 insertions, 0 deletions
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