[libvirt] [PATCH v2 06/15] util: Modify the FileTypeInfo to add a version size
John Ferlan
jferlan at redhat.com
Fri Jun 24 15:02:52 UTC 2016
[...]
>>
>>> @@ -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
More information about the libvir-list
mailing list