From 43a568d732962c8e095d3072f672451bcbe95f47 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 13 May 2009 12:46:29 -0700 Subject: avoid duplicate mounts while using mount.glusterfs This change is needed as the format of how the /etc/mtab entry of glusterfs mount looks is now changed. Signed-off-by: Anand V. Avati --- xlators/mount/fuse/utils/mount.glusterfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 477bfceb0..4d6e602b0 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -150,7 +150,7 @@ 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.glusterfs " /etc/mtab; then echo "$0: according to mtab, GlusterFS is already mounted on $mount_point" exit 1 fi -- cgit