All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bian Naimeng <biannm@cn.fujitsu.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 1/4] NLM: Kill PROC macro from NLMv1 and NLMv3 server procedures
Date: Fri, 17 Jul 2009 11:33:58 +0800	[thread overview]
Message-ID: <4A5FF126.2000907@cn.fujitsu.com> (raw)
In-Reply-To: <1247779647.12292.164.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>

> On Thu, 2009-07-16 at 17:29 +0800, Bian Naimeng wrote:
> 
>> +	[NLMPROC_NSM_NOTIFY] = {
>> +		.pc_func	= (svc_procfunc) nlmsvc_proc_sm_notify,
>> +		.pc_decode	= (kxdrproc_t) nlmsvc_decode_reboot,
>> +		.pc_encode	= (kxdrproc_t) nlmsvc_encode_void,
>> +		.pc_release	= NULL,
>> +		.pc_argsize	= sizeof(struct nlm_reboot),
>> +		.pc_ressize	= sizeof(struct nlm_void),
>> +		.pc_xdrressize	= 1,
>> +	},
>> +	NLMSVC_NONE_PROC,
>> +	NLMSVC_NONE_PROC,
>> +	NLMSVC_NONE_PROC,
> 
> Hmm... Does the C standard really allow you to mix C99 initialisers and
> K&R initialisers in this manner?
> 

  In this point, i think C99 is compatible with K&R. If it just support K&R
  but not C99, maybe " [subscript] = {}" should not work too.

  And i have tested with gcc, it can work with -std=c99 or -ansi option.

  And may i ask other questions.  

  Q: why we must initial these three procedures, is it in order to reply ok 
      to client?  

      But i have not finded that client will send these request.

      In RFC1813, we defined NLMPROC_NSM_NOTIFY = 16 and NLMPROC_SHARE = 20,
      but why not NLMPROC_SHARE = 17? 

      I try to find the reason, but failed. Would you answer my question or
      give me some suggestions. Thanks very much.
     
Best Regard
  Bian

> Cheers
>   Trond


  parent reply	other threads:[~2009-07-17  3:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16  9:27 [PATCH 0/4] Kill PROC macro from NLM Bian Naimeng
2009-07-16  9:29 ` [PATCH 1/4] NLM: Kill PROC macro from NLMv1 and NLMv3 server procedures Bian Naimeng
2009-07-16 21:27   ` Trond Myklebust
     [not found]     ` <1247779647.12292.164.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-17  3:33       ` Bian Naimeng [this message]
2009-07-16  9:30 ` [PATCH 2/4]Kill PROC macro from NLMv4 " Bian Naimeng
2009-07-16  9:31 ` [PATCH 3/4] NLM: Kill PROC macro from NLMv1 and NLMv3 client procedures Bian Naimeng
2009-07-16  9:32 ` [PATCH 4/4]NLM: Kill PROC macro from NLMv4 " Bian Naimeng

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=4A5FF126.2000907@cn.fujitsu.com \
    --to=biannm@cn.fujitsu.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.