Refresh volume alloc/capacity when dumping XML.

This commit is contained in:
Cole Robinson 2009-04-03 14:15:30 +00:00
parent a843f44c51
commit 766b2250e1
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View 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: