summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2012-02-22 17:27:59 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-22 04:17:55 -0800
commitf37fcaab9eb0601898f4ba6fb747d5c8d3fe4195 (patch)
treed0c6e844c08e90ca8853679c450bf2f19dea7865
parenta423cf80d17285de69594401559b7a255281c26c (diff)
mount.glusterfs: multiple fixes
* fix return value in case of proper 'backup-volfile-server' option, and actual default server based mount failed. * fix a syntax error (bug: 796050) Change-Id: I6a530c9b9431e46f45ec9eeb99f6103386dd10dc Signed-off-by: Amar Tumballi <amarts@redhat.com> BUG: 796101 Reviewed-on: http://review.gluster.com/2798 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 40fd5781e..9cdc69c1a 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -147,14 +147,15 @@ start_glusterfs ()
err=1;
if [ -n "$cmd_line1" ]; then
cmd_line1=$(echo "$cmd_line1 $mount_point");
- $cmd_line1
+ $cmd_line1;
+ err=0;
inode=$(stat -c %i $mount_point 2>/dev/null);
# this is required if the stat returns error
if [ -z "$inode" ]; then
inode="0";
fi
- if [ $inode -ne 1]; then
+ if [ $inode -ne 1 ]; then
err=1;
fi
fi