From: Kristina Hanicova Date: Tue, 24 Aug 2021 14:51:10 +0000 (+0200) Subject: storage_driver & test_driver: allow VIR_STORAGE_POOL_DEFINE_VALIDATE flag X-Git-Tag: v7.7.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b4fe8143f01126606a7b2c51d6791bc40bdbb6;p=thirdparty%2Flibvirt.git storage_driver & test_driver: allow VIR_STORAGE_POOL_DEFINE_VALIDATE flag Signed-off-by: Kristina Hanicova Reviewed-by: Michal Privoznik --- diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 37b84d038a..51daf6a05d 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -816,9 +816,9 @@ storagePoolDefineXML(virConnectPtr conn, virObjectEvent *event = NULL; g_autoptr(virStoragePoolDef) newDef = NULL; - virCheckFlags(0, NULL); + virCheckFlags(VIR_STORAGE_POOL_DEFINE_VALIDATE, NULL); - if (!(newDef = virStoragePoolDefParseString(xml, 0))) + if (!(newDef = virStoragePoolDefParseString(xml, flags))) goto cleanup; if (virXMLCheckIllegalChars("name", newDef->name, "\n") < 0) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 33bab0f9d3..2f19b7c520 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -6705,10 +6705,10 @@ testStoragePoolDefineXML(virConnectPtr conn, virObjectEvent *event = NULL; g_autoptr(virStoragePoolDef) newDef = NULL; - virCheckFlags(0, NULL); + virCheckFlags(VIR_STORAGE_POOL_DEFINE_VALIDATE, NULL); virObjectLock(privconn); - if (!(newDef = virStoragePoolDefParseString(xml, 0))) + if (!(newDef = virStoragePoolDefParseString(xml, flags))) goto cleanup; newDef->capacity = defaultPoolCap;