]> git.decadent.org.uk Git - nfs-utils.git/commit
umount.nfs command: Support AF_INET6 server addresses
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Feb 2009 21:26:31 +0000 (16:26 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 17 Feb 2009 21:26:31 +0000 (16:26 -0500)
commitc735a8331b082038a0e83ec4187c2656b0804eea
treeca307bb2262a34d944f457dd060e2fb67d632562
parent97de03f8c866b9d3e790d64f4e9ac24011aaa5b1
umount.nfs command: Support AF_INET6 server addresses

Replace existing mount option parser in nfsumount.c with the new pmap
stuffer
function nfs_options2pmap().  Mount option parsing for umount.nfs now
works
the same as it does for mount option rewriting in the text-based
mount.nfs
command.

This adds a number of new features:

  1.  The new logic supports resolving AF_INET6 server addresses
  2.  Support is added for the recently introduced "mountaddr" option.
  3.  Parsing numeric option values is much more careful
  4.  Option parsing no longer uses xmalloc/xstrdup, so it won't fail
      silently if memory can't be allocated
  5.  Mount program number set in /etc/rpc is respected
  6.  Mount doesn't exit with EX_USAGE if the hostname lookup fails

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/nfsumount.c