From 36ae3edd207bf173ba4d106024368df4c0d18c7e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 14 Apr 2014 12:36:50 +0200 Subject: mount.glusterfs: return 32 in case of double mounting The mount.nfs helper returns 32 for this particular error case. It makes sense for mount.glusterfs to return the same error value. Change-Id: I628f4c93bc796bb096e91857195ffd3d296eaae9 BUG: 1031973 Reported-by: Deepak C Shetty Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/7469 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mount/fuse/utils/mount.glusterfs.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 235246c39..71ea66c3c 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -619,9 +619,9 @@ EOF # Simple check to avoid multiple identical mounts if grep -q "[[:space:]+]${mount_point}[[:space:]+]fuse" $mounttab; then - warn -n "$0: according to mtab, GlusterFS is already mounted on " - warn "$mount_point" - exit 1; + warn "$0: according to mtab, GlusterFS is already mounted on" \ + "$mount_point" + exit 32; fi check_recursive_mount "$mount_point"; -- cgit