]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Don't mark all block disks for metadata reuse
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 Jun 2014 12:05:07 +0000 (14:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Jun 2014 15:22:05 +0000 (17:22 +0200)
commitb77d3d9b810d77070073bce73e5a19c1110e46e0
tree7c0bec8c440a9d719c8db8def8862381d87a706a
parent647bdf02d8a72e0f17c716cca42d145aedf8c3e4
qemu: snapshot: Don't mark all block disks for metadata reuse

For block devices used as snapshot source the new snapshot code would
set the reuse flag. This inhibits to take snapshot without specially
preparing the block image before taking the snapshot.

Fortunately this is not a regression as only the new way of specifying
snapshot source is affected.

For the followin snapshot XML:
 <domainsnapshot>
   <disks>
     <disk name='vda' type='block'>
       <driver type='qcow2'/>
       <source dev="/dev/andariel/testsnap" />
     </disk>
   </disks>
 </domainsnapshot>

You'd get:
error: internal error: unable to execute QEMU command 'transaction': Image is not in qcow2 format

After this patch the snapshot is created successfully.
src/qemu/qemu_driver.c