提交 b50ab42d 编写于 作者: D David Allan

Define the internal driver API for vol wiping

Also add vol wiping to ESX storage driver struct
上级 e10dc866
...@@ -722,6 +722,10 @@ typedef int ...@@ -722,6 +722,10 @@ typedef int
(*virDrvStorageVolDelete) (virStorageVolPtr vol, (*virDrvStorageVolDelete) (virStorageVolPtr vol,
unsigned int flags); unsigned int flags);
typedef int
(*virDrvStorageVolWipe) (virStorageVolPtr vol,
unsigned int flags);
typedef int typedef int
(*virDrvStorageVolGetInfo) (virStorageVolPtr vol, (*virDrvStorageVolGetInfo) (virStorageVolPtr vol,
virStorageVolInfoPtr info); virStorageVolInfoPtr info);
...@@ -791,6 +795,7 @@ struct _virStorageDriver { ...@@ -791,6 +795,7 @@ struct _virStorageDriver {
virDrvStorageVolCreateXML volCreateXML; virDrvStorageVolCreateXML volCreateXML;
virDrvStorageVolCreateXMLFrom volCreateXMLFrom; virDrvStorageVolCreateXMLFrom volCreateXMLFrom;
virDrvStorageVolDelete volDelete; virDrvStorageVolDelete volDelete;
virDrvStorageVolWipe volWipe;
virDrvStorageVolGetInfo volGetInfo; virDrvStorageVolGetInfo volGetInfo;
virDrvStorageVolGetXMLDesc volGetXMLDesc; virDrvStorageVolGetXMLDesc volGetXMLDesc;
virDrvStorageVolGetPath volGetPath; virDrvStorageVolGetPath volGetPath;
......
...@@ -102,6 +102,7 @@ static virStorageDriver esxStorageDriver = { ...@@ -102,6 +102,7 @@ static virStorageDriver esxStorageDriver = {
NULL, /* volCreateXML */ NULL, /* volCreateXML */
NULL, /* volCreateXMLFrom */ NULL, /* volCreateXMLFrom */
NULL, /* volDelete */ NULL, /* volDelete */
NULL, /* volWipe */
NULL, /* volGetInfo */ NULL, /* volGetInfo */
NULL, /* volGetXMLDesc */ NULL, /* volGetXMLDesc */
NULL, /* volGetPath */ NULL, /* volGetPath */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册