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:
committed by
Thomas Lamprecht
parent
31ed94ccf8
commit
816dadb17f
@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user