mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Refresh volume alloc/capacity when dumping XML.
This commit is contained in:
parent
a843f44c51
commit
766b2250e1
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user