From b50ab42d41844c84fc530076fb2cfa3b16aecf27 Mon Sep 17 00:00:00 2001 From: David Allan Date: Mon, 1 Mar 2010 15:15:16 -0500 Subject: [PATCH] Define the internal driver API for vol wiping Also add vol wiping to ESX storage driver struct --- src/driver.h | 5 +++++ src/esx/esx_storage_driver.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/driver.h b/src/driver.h index a64bba026e..1a511eb934 100644 --- a/src/driver.h +++ b/src/driver.h @@ -722,6 +722,10 @@ typedef int (*virDrvStorageVolDelete) (virStorageVolPtr vol, unsigned int flags); +typedef int + (*virDrvStorageVolWipe) (virStorageVolPtr vol, + unsigned int flags); + typedef int (*virDrvStorageVolGetInfo) (virStorageVolPtr vol, virStorageVolInfoPtr info); @@ -791,6 +795,7 @@ struct _virStorageDriver { virDrvStorageVolCreateXML volCreateXML; virDrvStorageVolCreateXMLFrom volCreateXMLFrom; virDrvStorageVolDelete volDelete; + virDrvStorageVolWipe volWipe; virDrvStorageVolGetInfo volGetInfo; virDrvStorageVolGetXMLDesc volGetXMLDesc; virDrvStorageVolGetPath volGetPath; diff --git a/src/esx/esx_storage_driver.c b/src/esx/esx_storage_driver.c index b920f3b3c0..7b073a65e8 100644 --- a/src/esx/esx_storage_driver.c +++ b/src/esx/esx_storage_driver.c @@ -102,6 +102,7 @@ static virStorageDriver esxStorageDriver = { NULL, /* volCreateXML */ NULL, /* volCreateXMLFrom */ NULL, /* volDelete */ + NULL, /* volWipe */ NULL, /* volGetInfo */ NULL, /* volGetXMLDesc */ NULL, /* volGetPath */ -- GitLab