Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
virStoragePoolObj *obj;
g_autoptr(virStoragePoolDef) def = NULL;
+ VIR_DEBUG("loading storage pool config XML '%s'", path);
+
if (!(def = virStoragePoolDefParseFile(path)))
return NULL;
if (!(stateFile = virFileBuildPath(stateDir, name, ".xml")))
return NULL;
+ VIR_DEBUG("loading storage pool state XML '%s'", stateFile);
+
if (!(xml = virXMLParseCtxt(stateFile, NULL, _("(pool state)"), &ctxt)))
return NULL;
active = false;
}
+ VIR_DEBUG("updating state of storage pool '%s' active=%d", def->name, active);
+
/* We can pass NULL as connection, most backends do not use
* it anyway, but if they do and fail, we want to log error and
* continue with other pools.