From 4cdf2032639285169151adc84e0c54d04b3806c6 Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Fri, 24 Jun 2016 17:32:31 +0300 Subject: [PATCH] vz: implement plain create API thru createFlags instead of visa versa Signed-off-by: Nikolay Shirokovskiy --- src/vz/vz_driver.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index 9e0f718e13..5809b79c68 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -1048,13 +1048,15 @@ vzDomainResume(virDomainPtr domain) } static int -vzDomainCreate(virDomainPtr domain) +vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags) { vzConnPtr privconn = domain->conn->privateData; virDomainObjPtr dom; int ret = -1; bool job = false; + virCheckFlags(0, -1); + if (!(dom = vzDomObjFromDomainRef(domain))) return -1; @@ -1200,12 +1202,9 @@ static int vzDomainIsActive(virDomainPtr domain) } static int -vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags) +vzDomainCreate(virDomainPtr domain) { - /* we don't support any create flags */ - virCheckFlags(0, -1); - - return vzDomainCreate(domain); + return vzDomainCreateWithFlags(domain, 0); } static int -- GitLab