]> git.proxmox.com Git - pve-storage.git/commitdiff
NFS: avoid using obsolete rpcinfo option
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 4 Feb 2021 08:04:26 +0000 (09:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Feb 2021 11:24:35 +0000 (12:24 +0100)
as suggested in the man page.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/NFSPlugin.pm

index 72e06c2ec2599979454280f0e41a477c1f335e94..cb168645acab299fac2abb9adafde5a5107a43a6 100644 (file)
@@ -166,7 +166,7 @@ sub check_connection {
     if (defined($opts) && $opts =~ /vers=4.*/) {
        # nfsv4 uses a pseudo-filesystem always beginning with /
        # no exports are listed
-       $cmd = ['/usr/sbin/rpcinfo', '-t', $server, 'nfs', '4'];
+       $cmd = ['/usr/sbin/rpcinfo', '-T', 'tcp', $server, 'nfs', '4'];
     } else {
        $cmd = ['/sbin/showmount', '--no-headers', '--exports', $server];
     }