提交 766b2250 编写于 作者: C Cole Robinson

Refresh volume alloc/capacity when dumping XML.

上级 a843f44c
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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册