[libvirt] [PATCH] qemu: detect truncated file as invalid save image

Eric Blake eblake at redhat.com
Fri Dec 16 15:29:41 UTC 2011

On 12/15/2011 08:37 PM, Osier Yang wrote:
> On 2011年12月16日 08:42, Eric Blake wrote:
>> If managed save fails at the right point in time, then the save
>> image can end up with 0 bytes in length (no valid header), and
>> our attempts in commit 55d88def to detect and skip invalid save
>> files missed this case.
>> * src/qemu/qemu_driver.c (qemuDomainSaveImageOpen): Also unlink
>> empty file as corrupt.  Reported by Dennis Householder.

Thanks; pushed.

Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111216/e4cf584a/attachment-0001.sig>

More information about the libvir-list mailing list