public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@redhat.com>
To: linux-nfs@vger.kernel.org
Cc: chuck.lever@oracle.com
Subject: [PATCH 0/3] nfs-utils: add IPv6 support to rpc.nfsd (RFC)
Date: Mon, 11 May 2009 13:58:14 -0400	[thread overview]
Message-ID: <1242064697-32520-1-git-send-email-jlayton@redhat.com> (raw)

This patchset is a first pass at adding IPv6 support to rpc.nfsd.

With the existing code on a relatively recent kernel with nfsdfs
mounted, rpc.nfsd will create IPv4 sockets and hand them off to the
kernel. The idea with this patchset is to have it do the same thing for
IPv6 sockets.

The kernel code for nfsd IPv6 support is not yet in place, so this code
isn't really very useful yet. I've tested this though against a patchset
from Chuck Lever's tree and seems to do the right thing there.

I've also done a bit of testing with this new code on existing kernels
and it seems to still work correctly.

It also optimizes the knfsd shutdown case a bit -- when setting the
threads to 0, the current code still opens sockets and hands them off to
the kernel, even though they'll never actually be used.

This patchset is just an RFC at the moment. The code is usable and
shouldn't break anything, but I'd like to see the kernel interfaces for
this in place before we commit this to the repo. It might be useful for
people working on IPv6 support for knfsd however.

Comments and suggestions appreciated.

Jeff Layton (3):
  nfs-utils: rearrange nfssvc.c
  nfs-utils: set IPV6_V6ONLY on nfssvc IPv6 sockets
  nfs-utils: add IPv6 support to nfsd

 support/include/nfslib.h |    5 +-
 support/nfs/nfssvc.c     |   91 ++++++++++++++++++-----------
 utils/nfsd/nfsd.c        |  142 ++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 178 insertions(+), 60 deletions(-)


             reply	other threads:[~2009-05-11 17:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-11 17:58 Jeff Layton [this message]
2009-05-11 17:58 ` [PATCH 1/3] nfs-utils: rearrange nfssvc.c Jeff Layton
2009-05-11 17:58 ` [PATCH 2/3] nfs-utils: set IPV6_V6ONLY on nfssvc IPv6 sockets Jeff Layton
2009-05-11 17:58 ` [PATCH 3/3] nfs-utils: add IPv6 support to nfsd Jeff Layton
2009-05-11 19:34   ` Chuck Lever
2009-05-18 15:42     ` Steve Dickson
     [not found]       ` <4A1181EE.7080401-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-05-18 15:48         ` Jeff Layton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1242064697-32520-1-git-send-email-jlayton@redhat.com \
    --to=jlayton@redhat.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox