public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Detect user space support for rpcbind v4
@ 2009-01-13 17:31 Chuck Lever
       [not found] ` <20090113172538.6755.83766.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Chuck Lever @ 2009-01-13 17:31 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

Hi Bruce-

Here's what I'm considering.

If the kernel detects that user space doesn't support rpcbind protocol
version 4, it falls back to version 2.  If it is trying to register an
IPv6 RPC service, it fails outright.

All of this can be disabled completely in favor of legacy behavior by
disabling CONFIG_SUNRPC_REGISTER_V4.

In addition, I will add CONFIG options to enable/disable lockd and NFSD
listening on IPv6 sockets, to prevent all this noise for anyone using
classic IPv4-only.  These will appear only if CONFIG_SUNRPC_REGISTER_V4
is enabled.

I haven't yet pursued why the kernel doesn't report the program version
mismatch to higher layers.  That will be needed to make these changes
work correctly.

These patches have been compile-tested only.

---

Chuck Lever (3):
      SUNRPC: Clearer error message when user space is running portmap
      SUNRPC: Clearer error message when user space is running portmap
      SUNRPC: Don't use EPROTONOSUPPORT in svc_register()


 net/sunrpc/svc.c |   99 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 84 insertions(+), 15 deletions(-)

-- 
Chuck Lever <chuck.lever@oracle.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-13 23:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 17:31 [PATCH 0/3] Detect user space support for rpcbind v4 Chuck Lever
     [not found] ` <20090113172538.6755.83766.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2009-01-13 17:31   ` [PATCH 1/3] SUNRPC: Don't use EPROTONOSUPPORT in svc_register() Chuck Lever
2009-01-13 17:31   ` [PATCH 2/3] SUNRPC: Clearer error message when user space is running portmap Chuck Lever
2009-01-13 17:31   ` [PATCH 3/3] " Chuck Lever
     [not found]     ` <20090113173156.6755.86231.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2009-01-13 17:44       ` Trond Myklebust
     [not found]         ` <1231868640.7036.11.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-01-13 18:26           ` Chuck Lever
2009-01-13 23:13             ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox