summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-06-22 19:26:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-23 12:33:46 -0700
commit1bd3a412d01c2d0cbbcf91e7983e2d4c9c8bbec4 (patch)
tree41a85ce585a9a461fecb7272fbb829970d923966
parente7b8470623ff647a6fe2740b555bf1ce2dae7d21 (diff)
mount.glusterfs.in correctness in case of duplicate mount
mount.<fstype> 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 <avati@dev.gluster.com>
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in4
1 files changed, 2 insertions, 2 deletions
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");