[libvirt] [PATCH REPOST 7/8] storage: Use virStoragePoolObjGetDef accessor for new driver events

John Ferlan jferlan at redhat.com
Fri Oct 6 14:43:01 UTC 2017


Missed from merge from commit id 'b0652192' into commit id 'bfcd8fc92'
were a couple of obj->def-> references.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/storage/storage_driver.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index b0edf9f885..2b7a299706 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storage_driver.c
@@ -994,8 +994,8 @@ storagePoolBuild(virStoragePoolPtr pool,
         backend->buildPool(pool->conn, obj, flags) < 0)
         goto cleanup;
 
-    event = virStoragePoolEventLifecycleNew(obj->def->name,
-                                            obj->def->uuid,
+    event = virStoragePoolEventLifecycleNew(def->name,
+                                            def->uuid,
                                             VIR_STORAGE_POOL_EVENT_CREATED,
                                             0);
 
@@ -1128,8 +1128,8 @@ storagePoolDelete(virStoragePoolPtr pool,
     if (backend->deletePool(pool->conn, obj, flags) < 0)
         goto cleanup;
 
-    event = virStoragePoolEventLifecycleNew(obj->def->name,
-                                            obj->def->uuid,
+    event = virStoragePoolEventLifecycleNew(def->name,
+                                            def->uuid,
                                             VIR_STORAGE_POOL_EVENT_DELETED,
                                             0);
 
-- 
2.13.6




More information about the libvir-list mailing list