From 1773e785c26c8977bac0e892d4958215dedcfa5c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 9 Dec 2015 13:22:19 +0100 Subject: [PATCH] nfs: is_mounted: match /^nfs.*/ type This is consistent with the old behavior. --- PVE/Storage/NFSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;