Re: [PREPOST 01/17] src/xenxs:Introduce function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Blake wrote:
> On 07/10/2014 07:42 AM, David Kiarie wrote:
>   
>> From: Kiarie Kahurani <davidkiarie4@xxxxxxxxx>
>>
>> Introduce function xenParseXMGeneral(virConfPtr conf, ...);
>> This function parses the xm general options such as uuid and name
>>     
>
> [meta-comment]:
>
> When posting a series, it's useful to post a cover letter (0/17) to
> which all patches reply to, rather than having 2-17 reply to 1/17 with
> no lead-in on the series as a whole.
>   

David, you can add '--cover-letter --annotate' to your git send-email
command to have git generate the cover letter and let you edit it before
sending.

>   
>> signed-off-by: David Kiarie <davidkiarie4@xxxxxxxxx>
>> ---
>>  src/xenxs/xen_xm.c | 65 +++++++++++++++++++++++++++++++-----------------------
>>  1 file changed, 37 insertions(+), 28 deletions(-)
>>
>> diff --git a/src/xenxs/xen_xm.c b/src/xenxs/xen_xm.c
>> index 25a042d..1953a85 100644
>> --- a/src/xenxs/xen_xm.c
>> +++ b/src/xenxs/xen_xm.c
>> @@ -253,44 +253,25 @@ xenXMConfigGetUUID(virConfPtr conf, const char *name, unsigned char *uuid)
>>   * Turn a config record into a lump of XML describing the
>>   * domain, suitable for later feeding for virDomainCreateXML
>>   */
>> -virDomainDefPtr
>> -xenParseXM(virConfPtr conf, int xendConfigVersion,
>> -                       virCapsPtr caps)
>> +static int xenParseXMGeneral(virConfPtr conf, virDomainDefPtr def,
>> +                      virCapsPtr caps)
>>     
>
> Indentation is off; per our style, this should be:
>
> static int
> xenParseXMGeneral(virConfPtr conf, virDomainDefPtr def,
>                   virCapsPtr caps)
>
>
>   
>> +}
>> +virDomainDefPtr
>>     
>
> 2 blank lines between functions.
>
>   
>> +xenParseXM(virConfPtr conf, int xendConfigVersion,
>> +                       virCapsPtr caps)
>>     
>
> Indentation is off; the second line should line up to the character
> after the ( of the first line.
>
> Otherwise, this looks like it is just a refactoring of splitting out a
> helper function for later reuse.
>   

David is looking into supporting Xen's xl config format in
domxml-{from,to}-native.  For the most part, xm is a subset of xl, so a
lot of the xm parsing code can be used by the xl parser.

David, this type of info would be useful in a cover letter, so reviewers
know what all the code motion is about :-).

Regards,
Jim

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]