]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainObjStart: Warn on corrupted image
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Nov 2013 15:37:16 +0000 (16:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Nov 2013 16:16:39 +0000 (17:16 +0100)
commitcfc28c66f9a754bb589b24e1d503eba2bdc5c840
tree3d0abd59309c94e468cbb06eeeeb0aa6b568c949
parent0a85160f26d7e7fcf5841bc2c7e268c0f195442a
qemuDomainObjStart: Warn on corrupted image

If the managedsave image is corrupted, e.g. the XML part is, we fail to
parse it and throw an error, e.g.:

error: Failed to start domain jms8
error: XML error: missing security model when using multiple labels

This is okay, as we can't really start the machine and avoid undefined
qemu behaviour. On the other hand, the error message doesn't give a
clue to users what should they do. The consensus here would be to thrown
a warning to logs saying "Hey, you've got a corrupted file".

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c