Patchwork block.h: bdrv_create2 doesn't exist any more

login
register
mail settings
Submitter Kevin Wolf
Date April 13, 2010, 10:43 a.m.
Message ID <1271155420-12406-1-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/50059/
State New
Headers show

Comments

Kevin Wolf - April 13, 2010, 10:43 a.m.
The bdrv_create2 implementation has been disappeared long ago. Remove its
prototype from the header file, too.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 block.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
Christoph Hellwig - April 13, 2010, 9:36 p.m.
On Tue, Apr 13, 2010 at 12:43:40PM +0200, Kevin Wolf wrote:
> The bdrv_create2 implementation has been disappeared long ago. Remove its
> prototype from the header file, too.
> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>

Looks good.

Patch

diff --git a/block.h b/block.h
index 4a57dd5..05ad572 100644
--- a/block.h
+++ b/block.h
@@ -57,10 +57,6 @@  BlockDriver *bdrv_find_format(const char *format_name);
 BlockDriver *bdrv_find_whitelisted_format(const char *format_name);
 int bdrv_create(BlockDriver *drv, const char* filename,
     QEMUOptionParameter *options);
-int bdrv_create2(BlockDriver *drv,
-                 const char *filename, int64_t size_in_sectors,
-                 const char *backing_file, const char *backing_format,
-                 int flags);
 BlockDriverState *bdrv_new(const char *device_name);
 void bdrv_delete(BlockDriverState *bs);
 int bdrv_file_open(BlockDriverState **pbs, const char *filename, int flags);