mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-11 05:18:01 +03:00
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:
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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user