mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-25 06:03:53 +03:00
allow optional slash in mount path
Seems NFS4 use that smetimes
This commit is contained in:
parent
db2ec87f83
commit
95e8e21cc5
@ -1761,7 +1761,7 @@ sub nfs_is_mounted {
|
|||||||
|
|
||||||
$mountdata = read_proc_mounts() if !$mountdata;
|
$mountdata = read_proc_mounts() if !$mountdata;
|
||||||
|
|
||||||
if ($mountdata =~ m/^$source\s$mountpoint\snfs/m) {
|
if ($mountdata =~ m|^$source/?\s$mountpoint\snfs|m) {
|
||||||
return $mountpoint;
|
return $mountpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user