mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
Define the internal driver API for vol wiping
Also add vol wiping to ESX storage driver struct
This commit is contained in:
parent
e10dc8666e
commit
b50ab42d41
@ -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 {
|
|||||||
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 = {
|
|||||||
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user