Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
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)
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;