]> git.proxmox.com Git - pve-storage.git/commitdiff
nfs: is_mounted: match /^nfs.*/ type
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 9 Dec 2015 12:22:19 +0000 (13:22 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 9 Dec 2015 15:15:31 +0000 (16:15 +0100)
This is consistent with the old behavior.

PVE/Storage/NFSPlugin.pm

index e1107fd90342bc421129e34fc8416ddc0a06daf3..df00f373d2562a0b3e2b7b5144fe065ade5b1827 100644 (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;