]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: improve disk align checking
authorEric Blake <eblake@redhat.com>
Tue, 23 Oct 2012 15:12:24 +0000 (17:12 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 2 Nov 2012 16:02:57 +0000 (10:02 -0600)
commitf9670bf8a4b6332a15d42dd4ed1b9b28855d9ba7
tree267ee307b2e0cf475d0d8797a0119036798da524
parent4201a7ea1c6daeaf2960fa00cfe8e30ec3e66531
snapshot: improve disk align checking

There were not previous callers with require_match set to true.
I originally implemented this bool with the intent of supporting
ESX snapshot semantics, where the choice of internal vs. external
vs. non-checkpointable must be made at domain start, but as ESX
has not been wired up to use it yet, we might as well fix it to
work with our next qemu patch for now, and worry about any further
improvements (changing the bool to a flags argument) if the ESX
driver decides to use this function in the future.

* src/conf/snapshot_conf.c (virDomainSnapshotAlignDisks): Alter
logic when require_match is true to deal with new XML.
src/conf/snapshot_conf.c