[PATCH] nodedev: fix error when no defined mdev exist

Boris Fiuczynski fiuczy at linux.ibm.com
Fri Jul 9 15:51:13 UTC 2021


On 7/9/21 5:27 PM, Boris Fiuczynski wrote:
>> -        virJSONValue *child_array;
>> -        int nchildren;
>> +    if (virJSONValueArraySize(json_devicelist) > 0) {
> 
> This seems now to break nodedev-create which created transient devices 
> since the related objects now also vanish.

I guess that must have been a late Friday outage...
My testing was erroneous and I did not use the newly created uuid 
thinking it was statically defined in the used XML to create the mdev 
which it wasn't. :(

Sorry about the confusion.

> 
>> +        if (virJSONValueArraySize(json_devicelist) != 1) { 


-- 
Mit freundlichen Grüßen/Kind regards
    Boris Fiuczynski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294





More information about the libvir-list mailing list