]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix probing of QED file format
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 13 Dec 2012 14:25:10 +0000 (14:25 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 13 Dec 2012 15:01:38 +0000 (15:01 +0000)
commit32bef82a2d061fc131ab26c6d8ee09705ccab5c4
treedb1872cab659703cfdebe448d9df7ddd0955d91b
parent24643c780bafdc0997cd3de06e75516fd73e7d87
Fix probing of QED file format

The QED file format is non-versioned, so although the magic
value matched, libvirt rejected it due to lack of a version
number to compare against. We need to distinguish this case
by allowing a value of '-2' to indicate a non-versioned file
where only the magic is required to match

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/storage_file.c