nfs: is_mounted: match /^nfs.*/ type

This is consistent with the old behavior.
This commit is contained in:
Wolfgang Bumiller
2015-12-09 13:22:19 +01:00
committed by Dietmar Maurer
parent ba1cb4f23b
commit 1773e785c2

View File

@ -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;