mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
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:
parent
59abe66f57
commit
77b4fe8143
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user