]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
migration: refactor: introduce parameter checking function
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 2 Oct 2015 07:52:51 +0000 (10:52 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 12 Oct 2015 11:31:32 +0000 (13:31 +0200)
commita26669d753bd7ea35eb579ebd3f6ff6fd89ce993
treefd070055ca0228c0dc839b1ed907fe32a23fa7a2
parent06c910eadf220635e83e36003760bddd5f007a89
migration: refactor: introduce parameter checking function

virDomainMigrateUnmanagedParams is not a good candidate for this functionality
as it is used by migrate family functions too and its have its own checks that
are superset of extracted and we don't need to check twice.

Actually name of the function is slightly misleading as there is also a check
for consistensy of flags parameter alone. So it could be refactored further and
reused by all migrate functions but for now let it be a matter of a different
patchset.

It is *not* a pure refactoring patch as it introduces offline check for older
versions. Looks like it must be done that way and no one will be broken too.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/libvirt-domain.c