diff options
author | Mohammed Junaid Ahmed <junaid@gluster.com> | 2010-11-02 05:29:05 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-03 04:25:50 -0700 |
commit | 428b6edc2e141ec701e4a8b0f2964bf251e0014b (patch) | |
tree | 3fc6df4e3398f0ce6b6d5c8acbb57e15651a0d30 /xlators/mount/fuse | |
parent | 0fbf226cdeb970f4b5829f92c6d27523f3ef4f04 (diff) |
Throwing an error while mounting glusterfs when fuse is not installed.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2002 (Mount fails, but gives no error)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2002
Diffstat (limited to 'xlators/mount/fuse')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 9 |
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 () |