]> xenbits.xensource.com Git - libvirt.git/commitdiff
Refresh volume alloc/capacity when dumping XML.
authorCole Robinson <crobinso@redhat.com>
Fri, 3 Apr 2009 14:15:30 +0000 (14:15 +0000)
committerCole Robinson <crobinso@redhat.com>
Fri, 3 Apr 2009 14:15:30 +0000 (14:15 +0000)
ChangeLog
src/storage_driver.c

index bfd23c00c8a0a4e2058978e216453b5c63e939b9..3b669f11aa8fcbcad8ba0a2cdc9d345590bae74c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr  3 10:15:01 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+       * src/storage_driver.c: Refresh volume alloc/capacity when dumping XML.
+
 Fri Apr  3 10:13:38 EDT 2009 Cole Robinson <crobinso@redhat.com>
 
        * src/test.c: Fix test driver domain restore return value.
index b2618436da78faf8538f6ce235833469770f5444..97fcf69a7c2d3e34e4458747bf791c9b1d47e70a 100644 (file)
@@ -1389,6 +1389,10 @@ storageVolumeGetXMLDesc(virStorageVolPtr obj,
     if ((backend = virStorageBackendForType(pool->def->type)) == NULL)
         goto cleanup;
 
+    if (backend->refreshVol &&
+        backend->refreshVol(obj->conn, pool, vol) < 0)
+        goto cleanup;
+
     ret = virStorageVolDefFormat(obj->conn, pool->def, vol);
 
 cleanup: