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;
|
||||
return $mountpoint if grep {
|
||||
$_->[2] eq 'nfs' &&
|
||||
$_->[2] =~ /^nfs/ &&
|
||||
$_->[0] =~ m|^\Q$source\E/?$| &&
|
||||
$_->[1] eq $mountpoint
|
||||
} @$mountdata;
|
||||
|
||||
Reference in New Issue
Block a user