From 1bd3a412d01c2d0cbbcf91e7983e2d4c9c8bbec4 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 22 Jun 2009 19:26:06 +0000 Subject: mount.glusterfs.in correctness in case of duplicate mount mount. script/program should return success in case when it finds duplicate mounts. It was returning failure earlier. Someversions of automount programs had issues with this behavior. Signed-off-by: Anand V. Avati --- xlators/mount/fuse/utils/mount.glusterfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/mount/fuse/utils') diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 2b43f834b8d..cd371c8ce58 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -154,9 +154,9 @@ function main () mount_point="$2"; # Simple check to avoid multiple identical mounts - if grep -q "glusterfs.* $mount_point fuse" /etc/mtab; then + if grep -q " $mount_point fuse" /etc/mtab; then echo "$0: according to mtab, GlusterFS is already mounted on $mount_point" - exit 1 + exit 0 fi fs_options=$(echo "$fs_options,$new_fs_options"); -- cgit