diff options
author | Niels de Vos <ndevos@redhat.com> | 2014-04-14 12:36:50 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-04-17 11:28:35 -0700 |
commit | 36ae3edd207bf173ba4d106024368df4c0d18c7e (patch) | |
tree | a441f2882e40a7e8cfa759beb81dd602f962f38a /xlators/mount/fuse/utils/mount.glusterfs.in | |
parent | 1dc3331d93ea9a2bb17a6dfa54f24ff57ecd6047 (diff) |
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 <deepakcs@redhat.com>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/7469
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/utils/mount.glusterfs.in')
-rwxr-xr-x | xlators/mount/fuse/utils/mount.glusterfs.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 235246c39df..71ea66c3ca8 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"; |