From: Chuck Lever <chuck.lever@oracle.com>
To: "Talpey, Thomas" <Thomas.Talpey@netapp.com>
Cc: nfs@lists.sourceforge.net
Subject: Re: [RFC] [PATCH] rpcbind netid declared per-transport
Date: Fri, 31 Aug 2007 12:27:34 -0400 [thread overview]
Message-ID: <46D84176.5020807@oracle.com> (raw)
In-Reply-To: <EXNANE01hjJ8uT6Ssuo00000243@exnane01.hq.netapp.com>
[-- Attachment #1: Type: text/plain, Size: 2037 bytes --]
Talpey, Thomas wrote:
> "RPCB_" prefix: They're (with this patch) part of the rpcbind api. The prefix
> seems logical to me...
Well, that's a fair argument, since the idea of netid is defined in RFC
1833, which is about rpcbind specifically. However, the globally scoped
RPC-related identifiers are usually named RPC_... and you are now making
use of these things in the transport layer as well as in rpcbind.
It's a nit, I guess.
> when you say "the same as the other RPC..." do you
> mean they should be "RPC_NETID_..."?
Yes.
> RPCB_MAXNETIDLEN: Sure, I'll move it. It is, after all, a limit on the string
> passed as the netid, i.e. part of the API. But let me ask this. It really isn't
> necessary, the code in rpcbind can easily accommodate longer strings. Is
> it worth coding the extra generality? The reason I didn't is because (as the
> comment mentions) there aren't any longer strings defined by any RFC.
We need to know the maximum size to compute the largest possible size of
the RPC buffer needed for the request. See the definition of
RPCB_netid_sz. Those are all added together to get the largest possible
request size, and that's used to compute the largest possible buffer size.
Using a macro documents what the heck that number is. "4? 4 what?" I
was asked at the time this was submitted to use macros instead of
open-coded integers, and I tend to agree that looks better.
> clnt.h vs msg_prot.h: After discovering the rpcbind calls defined in clnt.h,
> and also seeing rpc goop in there, it felt more correct than msg_prot.h,
> which is pretty much about rpc marshaling and error codes. All the other
> rpcbind stuff is in clnt.h, and most all clnt's need to call rpcbind to find
> their port. That's my rationale.
The rpcbind function calls are defined in clnt.h because they are part
of the RPC client API, specific to Linux.
Netids are standardized on-the-wire marshaled values, so they definitely
belong in msg_prot.h, which as you say, contains marshaling and error
code definitions.
[-- Attachment #2: chuck.lever.vcf --]
[-- Type: text/x-vcard, Size: 290 bytes --]
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 315 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #4: Type: text/plain, Size: 140 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-08-31 16:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 13:35 [RFC] [PATCH] rpcbind netid declared per-transport Talpey, Thomas
2007-08-31 14:08 ` Chuck Lever
2007-08-31 14:26 ` Trond Myklebust
2007-08-31 14:30 ` Chuck Lever
2007-08-31 15:13 ` Trond Myklebust
2007-08-31 15:38 ` Chuck Lever
2007-08-31 16:08 ` Talpey, Thomas
2007-08-31 16:27 ` Chuck Lever [this message]
2007-08-31 16:41 ` Talpey, Thomas
2007-08-31 16:59 ` Chuck Lever
2007-08-31 14:33 ` Chuck Lever
2007-08-31 14:32 ` Chuck Lever
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=46D84176.5020807@oracle.com \
--to=chuck.lever@oracle.com \
--cc=Thomas.Talpey@netapp.com \
--cc=nfs@lists.sourceforge.net \
/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