[...]

>>
>>> @@ -635,13 +637,25 @@ virStorageFileMatchesVersion(int format,
>>>      if (fileTypeInfo[format].versionOffset == -2)
>>>          return true;
> 
> So you would like to see:
> 
>     if (fileTypeInfo[format].versionSize == 0)
>         return false;
> 

Sent before I thought about this option:

    /* A positive versionOffset, requires using a valid versionSize */
    if (fileTypeInfo[format].versionSize != 2 &&
        fileTypeInfo[format].versionSize != 4)
        return false;

John

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

Reply via email to