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:
parent
ce653eadc2
commit
43a568d732
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user