Change the append_clientaddr_option() function to support sending either
authorChuck Lever <chuck.lever@oracle.com>
Tue, 15 Jul 2008 17:37:07 +0000 (13:37 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 15 Jul 2008 17:37:07 +0000 (13:37 -0400)
commit313dcf93f7a8351ff1664a3a7e2a964e02ea624a
treec2346ffddbf7edb06496a29cb4e45e27c7effe2d
parent1adb0e018f57079c6e95a9bdbf904361354b0527
Change the append_clientaddr_option() function to support sending either
IPv4 or IPv6 addresses to the kernel via the "clientaddr=" option.

If the mount.nfs4 command can't determine an appropriate callback address,
it used to fail the mount request.  This new function simply sends an ANY
address instead, so the mount request succeeds, but delegation is disabled.

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