17 lines
740 B
Diff
17 lines
740 B
Diff
diff -Naupr glusterfs-1.3.8.orig/glusterfs-fuse/utils/mount.glusterfs.in glusterfs-1.3.8/glusterfs-fuse/utils/mount.glusterfs.in
|
|
--- glusterfs-1.3.8.orig/glusterfs-fuse/utils/mount.glusterfs.in 2008-01-08 12:49:35.000000000 +0100
|
|
+++ glusterfs-1.3.8/glusterfs-fuse/utils/mount.glusterfs.in 2008-01-08 13:44:30.000000000 +0100
|
|
@@ -121,6 +121,12 @@ main ()
|
|
# $2=$(echo "$@" | sed -n 's/[^ ]* \([^ ]*\).*/\1/p');
|
|
|
|
mount_point="$2";
|
|
+
|
|
+ # Simple check to avoid multiple identical mounts
|
|
+ if grep -q "glusterfs $mount_point fuse" /etc/mtab; then
|
|
+ echo "$0: according to mtab, a glusterfs is already mounted on $mount_point"
|
|
+ exit 1
|
|
+ fi
|
|
|
|
fs_options=$(echo "$fs_options,$new_fs_options");
|
|
|