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>
This commit is contained in:
Amar Tumballi 2009-05-13 12:46:29 -07:00 committed by Anand V. Avati
parent ce653eadc2
commit 43a568d732

View File

@ -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