]> 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)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 13 Apr 2017 10:17:17 +0000 (12:17 +0200)
commiteee3b4b9493a0b4e5e5fb473893a55320b4f83b1
tree22e386094e3210b1fdaf38526f9af64a8ad3b4ba
parent7526a71586d4072cef7d66798c3da4d30e163e7d
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.
src/qemu/qemu_driver.c