nfs: is_mounted: match /^nfs.*/ type
This is consistent with the old behavior.
This commit is contained in:
committed by
Dietmar Maurer
parent
ba1cb4f23b
commit
1773e785c2
@ -22,7 +22,7 @@ sub nfs_is_mounted {
|
|||||||
|
|
||||||
$mountdata = PVE::ProcFSTools::parse_proc_mounts() if !$mountdata;
|
$mountdata = PVE::ProcFSTools::parse_proc_mounts() if !$mountdata;
|
||||||
return $mountpoint if grep {
|
return $mountpoint if grep {
|
||||||
$_->[2] eq 'nfs' &&
|
$_->[2] =~ /^nfs/ &&
|
||||||
$_->[0] =~ m|^\Q$source\E/?$| &&
|
$_->[0] =~ m|^\Q$source\E/?$| &&
|
||||||
$_->[1] eq $mountpoint
|
$_->[1] eq $mountpoint
|
||||||
} @$mountdata;
|
} @$mountdata;
|
||||||
|
|||||||
Reference in New Issue
Block a user