[libvirt] [PATCH v3 1/5] Internal refactory of data structures

Marcelo Cerri mhcerri at linux.vnet.ibm.com
Wed Aug 15 20:39:12 UTC 2012


On 08/06/2012 10:30 AM, Michal Privoznik wrote:
> On 03.08.2012 16:18, Marcelo Cerri wrote:
>>...
>> @@ -11181,10 +11210,10 @@ virDomainDiskDefFormat(virBufferPtr buf,
>>               if (def->startupPolicy)
>>                   virBufferEscapeString(buf, " startupPolicy='%s'",
>>                                         startupPolicy);
>> -            if (def->seclabel) {
>> +            if (def->seclabels && def->seclabels[0]) {
>
> I guess def->nseclabels would be sufficient here.
>

I will keep this check because when a security label is not provide in 
XML `def->seclabels[0]` is set to NULL. Anyway, this behavior is 
replaced in the next commits.

Regards,
Marcelo




More information about the libvir-list mailing list