From d5124c00d80b4d948509f2c7f6b54228d9981f75 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Thu, 5 Sep 2013 14:26:05 +0200 Subject: bdrv: Use "Error" for creating images Add an Error ** parameter to BlockDriver.bdrv_create to allow more specific error messages. Signed-off-by: Max Reitz --- block/raw_bsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'block/raw_bsd.c') diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 2418f58..7d75ad2 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -130,7 +130,8 @@ static int raw_has_zero_init(BlockDriverState *bs) return bdrv_has_zero_init(bs->file); } -static int raw_create(const char *filename, QEMUOptionParameter *options) +static int raw_create(const char *filename, QEMUOptionParameter *options, + Error **errp) { return bdrv_create_file(filename, options); } -- cgit v1.1