aboutsummaryrefslogtreecommitdiff
path: root/block/raw-win32.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2013-09-05 14:26:05 +0200
committerKevin Wolf <kwolf@redhat.com>2013-09-12 10:12:48 +0200
commitd5124c00d80b4d948509f2c7f6b54228d9981f75 (patch)
tree522995c8e7db4cc07ff1b4265ffeb78105f0f2b7 /block/raw-win32.c
parent015a1036a74ad29bb6916754911ce25587ff4db3 (diff)
downloadqemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.zip
qemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.tar.gz
qemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.tar.bz2
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 <mreitz@redhat.com>
Diffstat (limited to 'block/raw-win32.c')
-rw-r--r--block/raw-win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/raw-win32.c b/block/raw-win32.c
index 80551b9..1e7651b 100644
--- a/block/raw-win32.c
+++ b/block/raw-win32.c
@@ -422,7 +422,8 @@ static int64_t raw_get_allocated_file_size(BlockDriverState *bs)
return st.st_size;
}
-static int raw_create(const char *filename, QEMUOptionParameter *options)
+static int raw_create(const char *filename, QEMUOptionParameter *options,
+ Error **errp)
{
int fd;
int64_t total_size = 0;