]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: sanity check when reusing file for snapshot
authorEric Blake <eblake@redhat.com>
Fri, 6 Apr 2012 16:32:07 +0000 (10:32 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 22 Oct 2012 21:10:16 +0000 (15:10 -0600)
commit33eaebe48e9215da6bc7d5bd426593821cc18cb9
tree8ce6ebab1f0cf715e7753aee3574e0d42725f47a
parent23a4df886d01cf99a3201ef2fa3a5dddaf301f74
snapshot: sanity check when reusing file for snapshot

The snapshot code when reusing an existing file had hard-to-read
logic, as well as a missing sanity check: REUSE_EXT should require
the destination to already be present.

* src/qemu/qemu_driver.c (qemuDomainSnapshotDiskPrepare): Require
destination on REUSE_EXT, rename variable for legibility.
src/qemu/qemu_driver.c