From: Wolfgang Bumiller Date: Wed, 9 Dec 2015 12:22:19 +0000 (+0100) Subject: nfs: is_mounted: match /^nfs.*/ type X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1773e785c26c8977bac0e892d4958215dedcfa5c;p=pve-storage.git nfs: is_mounted: match /^nfs.*/ type This is consistent with the old behavior. --- diff --git a/PVE/Storage/NFSPlugin.pm b/PVE/Storage/NFSPlugin.pm index e1107fd..df00f37 100644 --- a/PVE/Storage/NFSPlugin.pm +++ b/PVE/Storage/NFSPlugin.pm @@ -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;