summaryrefslogtreecommitdiffstats
path: root/xlators/mount
diff options
context:
space:
mode:
authorAmar Tumballi <amar@del.gluster.com>2009-05-13 12:46:29 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-05-16 15:33:46 +0530
commit43a568d732962c8e095d3072f672451bcbe95f47 (patch)
treed3d9efd872d859ca226a158889d038e45cab17e5 /xlators/mount
parentce653eadc2d13e9f4d3748d217ef7614539a2f34 (diff)
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 <avati@amp.gluster.com>
Diffstat (limited to 'xlators/mount')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 477bfceb00e..4d6e602b0ff 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