diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-09-28 16:37:06 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-09-29 07:58:57 +1000 |
commit | 7aa9d664abc948370b7c93d0e27d54859ae278fd (patch) | |
tree | 3ee706cc16ed7fc4ccf1b6b1db0002bc0f03b6fa /support/nfs/xlog.c | |
parent | 8034455d1fc4e315b54d100fd8138ce4c5c08471 (diff) | |
download | nfs-utils-7aa9d664abc948370b7c93d0e27d54859ae278fd.tar.gz nfs-utils-7aa9d664abc948370b7c93d0e27d54859ae278fd.tar.xz nfs-utils-7aa9d664abc948370b7c93d0e27d54859ae278fd.zip |
text-based mount.nfs: Fix mounthost= processing
The 'mounthost=' option names a host where the mountd service is running.
The option is used to direct clients to use a different host for the mountd
procotol than the host where the NFS service is running.
The nfs(5) man page shows that the 'mounthost=' option takes a name, not
an address. The kernel's text-based mount option parsing logic expects an
IPv4 address. This is necessary because the kernel cannot itself resolve
hostnames to addresses.
Resolve the hostname and pass in a new mount option that contains the
resolved address, 'mountaddr=', to the kernel.
This requires a patch to the kernel to recognize the new 'mountaddr='
option, and to change the 'mounthost=' parsing logic to treat the value of
this option as a simple string.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'support/nfs/xlog.c')
0 files changed, 0 insertions, 0 deletions