NFS: avoid using obsolete rpcinfo option

as suggested in the man page.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Fabian Ebner
2021-02-04 09:04:26 +01:00
committed by Thomas Lamprecht
parent 31ed94ccf8
commit 816dadb17f

View 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];
}