From: Steve Dickson <SteveD@redhat.com>
To: NeilBrown <neilb@suse.de>
Cc: Wangminlan <wangminlan@huawei.com>, NFS <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH - nfs-utils] Stop Treat IP addresses a FQDN rather than SUBNETs.
Date: Thu, 24 Oct 2013 16:07:23 -0400 [thread overview]
Message-ID: <52697DFB.7030107@RedHat.com> (raw)
In-Reply-To: <20131022101754.462d3f8b@notabene.brown>
On 21/10/13 19:17, NeilBrown wrote:
>
>
> I think there was a reason for this many years ago,
> but I can not find any evidence that it ever really did
> anything useful and it certainly doesn't seem to now.
>
> And the documentation suggests that IP address take precedence over
> SUBNETs, and that can only happen if they are treated as MCL_FQDN.
>
> So remove this apparently pointless code.
>
> Reported-and-tested-by: Wangminlan <wangminlan@huawei.com>
> Signed-off-by: NeilBrown <neilb@suse.de>
Committed...
steved.
>
> diff --git a/support/export/client.c b/support/export/client.c
> index ba2db8f..adbeed8 100644
> --- a/support/export/client.c
> +++ b/support/export/client.c
> @@ -767,15 +767,5 @@ client_gettype(char *ident)
> sp++;
> }
>
> - /*
> - * Treat unadorned IP addresses as MCL_SUBNETWORK.
> - * Everything else is MCL_FQDN.
> - */
> - ai = host_pton(ident);
> - if (ai != NULL) {
> - freeaddrinfo(ai);
> - return MCL_SUBNETWORK;
> - }
> -
> return MCL_FQDN;
> }
>
prev parent reply other threads:[~2013-10-24 20:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 23:17 [PATCH - nfs-utils] Stop Treat IP addresses a FQDN rather than SUBNETs NeilBrown
2013-10-24 20:07 ` Steve Dickson [this message]
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=52697DFB.7030107@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=wangminlan@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).