Re: [PATCH v2 06/15] util: Modify the FileTypeInfo to add a version size

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

 



[...]

>>
>>> @@ -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@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]