Re: [REPOST PATCH v2 6/9] qemu: Add support for parsing iotune group setting

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

 



[...]

>>      BLOCK_IOTUNE_ASSIGN(SIZE_IOPS_SEC, size_iops_sec);
>>  
>> +    if (*nparams < maxparams &&
>> +        virTypedParameterAssign(&params[(*nparams)++],
>> +                                VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME,
>> +                                VIR_TYPED_PARAM_STRING,
>> +                                reply.group_name) < 0)
>> +        goto endjob;
>> +
> 
> As Martin pointed out in v1 review , this could still become
> BLOCK_IOTUNE_ASSIGN, this way it just sort of bothers the OCD inside me. Would
> you mind adjusting it? :)

I get the OCD thing; however, as I pointed out in my response to Martin
the macro uses VIR_TYPED_PARAM_ULLONG while this particular field is a
VIR_TYPED_PARAM_STRING

> 
> Also, this^^ hunk above will later (during serialization) crash the daemon,
> since reply is uninitialized in this function so that needs to be adjusted as
> well.

I'm not getting a libvirtd crash...   Do you have a trace?

John

[...]

--
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]
  Powered by Linux