]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: Add debug logs for storage pool config loading
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jan 2022 10:33:46 +0000 (11:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jan 2022 13:23:56 +0000 (14:23 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/virstorageobj.c
src/storage/storage_driver.c

index 02903ac48799be047d2a837d916da83fbee41ff6..815ada8584e459755c5b19d87c9772859068061c 100644 (file)
@@ -1614,6 +1614,8 @@ virStoragePoolObjLoad(virStoragePoolObjList *pools,
     virStoragePoolObj *obj;
     g_autoptr(virStoragePoolDef) def = NULL;
 
+    VIR_DEBUG("loading storage pool config XML '%s'", path);
+
     if (!(def = virStoragePoolDefParseFile(path)))
         return NULL;
 
@@ -1655,6 +1657,8 @@ virStoragePoolObjLoadState(virStoragePoolObjList *pools,
     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;
 
index 4df2c75a2bb7b3dcb960d5f8c2bfb2b1f7146688..8dfa2497fc88c3bd0b797e8257d4a3e9439f297f 100644 (file)
@@ -156,6 +156,8 @@ storagePoolUpdateStateCallback(virStoragePoolObj *obj,
         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.