mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-09 12:38:27 -05:00
Refresh volume alloc/capacity when dumping XML.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user