5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-10 01:18:05 +03:00

allow optional slash in mount path

Seems NFS4 use that smetimes
This commit is contained in:
Dietmar Maurer 2012-01-26 05:55:12 +01:00
parent db2ec87f83
commit 95e8e21cc5

View File

@ -1761,7 +1761,7 @@ sub nfs_is_mounted {
$mountdata = read_proc_mounts() if !$mountdata;
if ($mountdata =~ m/^$source\s$mountpoint\snfs/m) {
if ($mountdata =~ m|^$source/?\s$mountpoint\snfs|m) {
return $mountpoint;
}