From 95e8e21cc51b9b7c2e2ad614f369b90fa720d132 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 26 Jan 2012 05:55:12 +0100 Subject: [PATCH] allow optional slash in mount path Seems NFS4 use that smetimes --- PVE/Storage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 1b5dc66..c30d37a 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1761,7 +1761,7 @@ sub nfs_is_mounted { $mountdata = read_proc_mounts() if !$mountdata; - if ($mountdata =~ m/^$source\s$mountpoint\snfs/m) { + if ($mountdata =~ m|^$source/?\s$mountpoint\snfs|m) { return $mountpoint; }