Re: [libvirt] [PATCH] esx: Map the .vmx annotation to the domain XML description

2010-08-30 Thread Matthias Bolte
2010/8/30 Eric Blake : > On 08/27/2010 04:10 PM, Matthias Bolte wrote: >> >> In v2 (attached) I made this unescape all |XX and removed the memmoves. >> >> To convert XX to the actual char I moved hextobin (used internally by >> virUUIDParse) to util.c and used it here. The move is done in a >> sepa

Re: [libvirt] [PATCH] esx: Map the .vmx annotation to the domain XML description

2010-08-30 Thread Eric Blake
On 08/27/2010 04:10 PM, Matthias Bolte wrote: In v2 (attached) I made this unescape all |XX and removed the memmoves. To convert XX to the actual char I moved hextobin (used internally by virUUIDParse) to util.c and used it here. The move is done in a separate patch (attached). ACK to both pat

Re: [libvirt] [PATCH] esx: Map the .vmx annotation to the domain XML description

2010-08-27 Thread Matthias Bolte
2010/8/27 Eric Blake : > On 08/27/2010 10:31 AM, Matthias Bolte wrote: >> >> +    char *annotation = NULL; >> +    char *tmp; >> +    int length; > > s/int/size_t/ > >>      int controller; >>      int bus; >>      int port; >> @@ -947,6 +950,33 @@ esxVMX_ParseConfig(esxVMX_Context *ctx, virCapsPtr

Re: [libvirt] [PATCH] esx: Map the .vmx annotation to the domain XML description

2010-08-27 Thread Eric Blake
On 08/27/2010 10:31 AM, Matthias Bolte wrote: +char *annotation = NULL; +char *tmp; +int length; s/int/size_t/ int controller; int bus; int port; @@ -947,6 +950,33 @@ esxVMX_ParseConfig(esxVMX_Context *ctx, virCapsPtr caps, const char *vmx, goto cleanu

[libvirt] [PATCH] esx: Map the .vmx annotation to the domain XML description

2010-08-27 Thread Matthias Bolte
Take care of escaping '"' and '|' (the escape character). Add tests for this. --- src/esx/esx_vmx.c| 124 - tests/vmx2xmldata/vmx2xml-annotation.vmx |3 + tests/vmx2xmldata/vmx2xml-annotation.xml | 16 tests/vmx2xmltest.c