]> git.ipfire.org Git - thirdparty/libvirt.git/commit
flags: fix domain_conf migration regression
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2011 19:03:20 +0000 (13:03 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 15 Jul 2011 19:31:46 +0000 (13:31 -0600)
commit20135c704ab5a7139174f64a435ab7a2c2ed02df
tree9066c6e5409f6525bccabe07efb64f1f12cba1bd
parente5adda7e6b282732d1d8957d9463b304ed03bb5c
flags: fix domain_conf migration regression

Commit 461e0f1a broke migration, because there was a code path
that tried to enable an internal flag while still going through
the public function.  Split the internal flag into a separate
callback, and validate that flags do not overlap.

* src/conf/domain_conf.c (virDomainDefFormat): Split...
(virDomainDefFormatInternal): ...to separate the flag check.
(virDomainObjFormat): Adjust caller.
src/conf/domain_conf.c