]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: managedsave: Don't spam logs with warnings about corrupted image
authorPeter Krempa <pkrempa@redhat.com>
Wed, 28 May 2014 14:46:48 +0000 (16:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 28 May 2014 17:27:27 +0000 (19:27 +0200)
commit0b317d61fc3f7c1163e20166bb5a065caba0bc9e
tree9fefd9bb9114456c971b5684ad19d31cbc46ea00
parent92dc2dabb3ce5003a54f64493ec961cadbdee7db
qemu: managedsave: Don't spam logs with warnings about corrupted image

Even successful start of a VM from a managed save image would spam the
logs with the following message:

Unable to restore from managed state [path]. Maybe the file is
corrupted?

Re-arrange the logic to output the warning only when the image is
corrupted.

The flaw was introduced in commit cfc28c66.
src/qemu/qemu_driver.c