]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Skip empty drives with internal snapshots
authorPeter Krempa <pkrempa@redhat.com>
Fri, 7 Apr 2017 14:56:49 +0000 (16:56 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:33:09 +0000 (15:33 -0400)
commit2c59352638eabdf172af65cbc8dea19bdbeeb815
tree6e525aef3a3e8779896eb52ecd8b530eb3bd2f7b
parente62d61e7f8067cc782906fe62758ec3fdf5cc763
qemu: snapshot: Skip empty drives with internal snapshots

The code that validates whether an internal snapshot is possible would
reject an empty but not-readonly drive. Since floppies can have this
property, add a check for emptiness.

(cherry picked from commit eee3b4b9493a0b4e5e5fb473893a55320b4f83b1)
src/qemu/qemu_driver.c