]> git.proxmox.com Git - pve-storage.git/commit
NFS: replace rpcinfo with showmounts
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 21 May 2015 08:24:52 +0000 (10:24 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 21 May 2015 09:49:35 +0000 (11:49 +0200)
commitf8b0d82fe67e30feb260b95983f73b580f916c71
treea73f6f0ec073d21217830317a9c0e6036df48ff7
parentda63f588326a68f6e46261a65638c786ba414f01
NFS: replace rpcinfo with showmounts

rpcinfo from rpcbind-0.2.1 in debian doesn't support ipv6 addresses.
At the same time the used command only actually tests for
portmapper/rpcbind availability, not for NFS directly.
Storage::scan_nfs uses /sbin/showmount to get a list of NFS exports from a
server and happily accepts ipv6 addresses. It is also more specific to NFS.

Replacing the rpcinfo call with showmount here means checking explicitly
for NFS and supporting IPv6 without the need for an updated rpcbind
package.
PVE/Storage/NFSPlugin.pm