Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 6/6] nfs: Fix misparsing of nfsv4 fs_locations attribute
Date: Tue, 10 Jun 2008 15:17:52 -0400	[thread overview]
Message-ID: <20080610191752.GN20184@fieldses.org> (raw)
In-Reply-To: <BD59D20E-31F3-4D74-9CB6-3A14F6CB025A@oracle.com>

On Tue, Jun 10, 2008 at 11:34:14AM -0400, Chuck Lever wrote:
> On Jun 9, 2008, at 5:22 PM, J. Bruce Fields wrote:
>> On Mon, Jun 09, 2008 at 05:08:16PM -0400, Trond Myklebust wrote:
>>>
>>> What if it is an IPv6 address? As I've said before, could we please  
>>> just
>>> adapt nfs_parse_server_address to deal with all these cases?
>>
>> I haven't had the time to do that, so I thought we'd rather have a fix
>> for the immediate bug now, then add ipv6 support later.  For all I  
>> know
>> the final patches might end up factoring reasonable cleanly that way
>> anyway.
>
> I have a patch (upcoming for 2.6.27) that fixes nfs_parse_server_address 
> to be careful about '\0'-termination.  It changes the function to take a 
> char * and a length.  All you will need to do is make it non-static.

OK, good.  That patch and my patch will apply together in either order;
mine ditches the unnecessary valid_ipadd4() and relies on in4_pton()
instead.  Yours makes nfs_parse_server_address more-or-less a drop-in
replacement for in4_pton there.  And it should be easy to switch it over
either in whichever patch comes second or in a small third patch.

So, I was right, this is the natural way to factor out the change
anyway.

The one remaining thing missing for that to work, I think, is to fix the

	struct sockaddr *addr;

field in nfs_clone_mount?

--b.

>
> (I would have mentioned it yesterday but I thought I had dropped the  
> patch from my "for 2.6.27" series).


  reply	other threads:[~2008-06-10 19:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 20:51 miscellaneous nfs patches for 2.6.27 J. Bruce Fields
2008-06-09 20:51 ` [PATCH 1/6] rpc: bring back cl_chatty J. Bruce Fields
2008-06-09 20:51   ` [PATCH 2/6] rpc: timeout patch J. Bruce Fields
2008-06-09 20:51     ` [PATCH 3/6] rpc: eliminate unused variable in auth_gss upcall code J. Bruce Fields
2008-06-09 20:51       ` [PATCH 4/6] rpc: remove some unused macros J. Bruce Fields
2008-06-09 20:51         ` [PATCH 5/6] rpc: minor cleanup of scheduler callback code J. Bruce Fields
2008-06-09 20:51           ` [PATCH 6/6] nfs: Fix misparsing of nfsv4 fs_locations attribute J. Bruce Fields
2008-06-09 21:08             ` Trond Myklebust
2008-06-09 21:22               ` J. Bruce Fields
2008-06-10 15:34                 ` Chuck Lever
2008-06-10 19:17                   ` J. Bruce Fields [this message]
2008-06-10 20:51                     ` Chuck Lever
2008-06-11 17:59                       ` J. Bruce Fields
2008-06-09 21:10             ` Chuck Lever
2008-06-09 21:18     ` [PATCH 2/6] rpc: timeout patch Trond Myklebust
2008-06-09 21:39       ` J. Bruce Fields

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=20080610191752.GN20184@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Trond.Myklebust@netapp.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