From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [PATCH v2 08/13] xenstore: modify init-xenstore-domain parameter syntax Date: Thu, 7 Jan 2016 11:28:32 +0100 Message-ID: <568E3DD0.3090804@suse.com> References: <1450444471-6454-1-git-send-email-jgross@suse.com> <1450444471-6454-9-git-send-email-jgross@suse.com> <1452097260.21055.106.camel@citrix.com> <568E06FE.4030708@suse.com> <1452162215.21055.163.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1452162215.21055.163.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, wei.liu2@citrix.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On 07/01/16 11:23, Ian Campbell wrote: > On Thu, 2016-01-07 at 07:34 +0100, Juergen Gross wrote: >> On 06/01/16 17:21, Ian Campbell wrote: >>> On Fri, 2015-12-18 at 14:14 +0100, Juergen Gross wrote: >>>> init-xenstore-domain takes only positional parameters today. Change >>>> this to a more flexible parameter syntax allowing to specify >>>> additional >>>> options or to omit some. >>>> >>>> Today the supported usage is: >>>> >>>> init-xenstore-domain >>>> [] >>>> >>>> Modify this to: >>>> >>>> init-xenstore-domain --kernel >>>> --memory >>>> [--flask ] >>>> [--ramdisk ] >>>> >>>> The flask label is made optional in order to support xenstore domains >>>> without the need of a flask enabled hypervisor. >>>> >>>> Signed-off-by: Juergen Gross >>> >>> I think Daniel and I both acked this patch in v1 (as #5/9). Is this >>> version >>> different? If so please include an intra-version changelog after the "- >>> --" >>> to help us out. >> >> There was an error in parameter parsing (omitting kernel or memory >> wasn't detected). It was mentioned in the changelog in the cover letter. > > In general we prefer these sorts of details to be mentioned in the patch > themselves, after a "---" marker such that they don't get included in the > actual commit. The cover letter should be more of a summary. Okay, I'll add a patch specific changelog in the future. > >> I'll add a note next time when I drop an Ack. > > Thanks. > > WRT that change and: > >> + if (optind != argc || !kernel || !memory) { >> + usage(); >> return 2; >> } > > Under what circumstances can optind != argc? AFAICT it should never happen > because the switch cover all valid options and returns otherwise. If it can > never happen it should be an assert. > > Oh, is it to catch things like "--foo bar baz" i.e. additional non-option > arguments (of which there should be none)? Exactly. > > If that is the case: Acked-by: Ian Campbell Thanks, Juergen