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
+4
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: