]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/NFSPlugin.pm
NFS: replace rpcinfo with showmounts
[pve-storage.git] / PVE / Storage / NFSPlugin.pm
index 14aa4ed2bc4ad35b480ca66895ac86aae44b87c1..68764b7ccaa2ee51fa71e23bde1541e6d0a0d144 100644 (file)
@@ -170,8 +170,7 @@ sub check_connection {
 
     my $server = $scfg->{server};
 
-    # test connection to portmapper
-    my $cmd = ['/usr/sbin/rpcinfo', '-p', $server];
+    my $cmd = ['/sbin/showmount', '--no-headers', '--exports', $server];
 
     eval {
        run_command($cmd, timeout => 2, outfunc => sub {}, errfunc => sub {});