storage_driver & test_driver: allow VIR_STORAGE_POOL_DEFINE_VALIDATE flag

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Kristina Hanicova 2021-08-24 16:51:10 +02:00 committed by Michal Privoznik
parent 59abe66f57
commit 77b4fe8143
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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;