diff options
author | Amar Tumballi <amar@gluster.com> | 2009-06-22 19:26:06 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-23 12:33:47 -0700 |
commit | 791961668269516cd0b613ec2407c655d6f40779 (patch) | |
tree | b8fd6a09cb86a99a148b481f897803e53f3a8cf5 | |
parent | c699050f7634e782c776242eb95e5754fce29e55 (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-x | xlators/mount/fuse/utils/mount.glusterfs.in | 4 |
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"); |