diff options
author | Max Reitz <mreitz@redhat.com> | 2013-09-05 14:26:05 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-12 10:12:48 +0200 |
commit | d5124c00d80b4d948509f2c7f6b54228d9981f75 (patch) | |
tree | 522995c8e7db4cc07ff1b4265ffeb78105f0f2b7 /block/iscsi.c | |
parent | 015a1036a74ad29bb6916754911ce25587ff4db3 (diff) | |
download | qemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.tar.gz qemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.tar.bz2 qemu-d5124c00d80b4d948509f2c7f6b54228d9981f75.zip |
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/iscsi.c')
-rw-r--r-- | block/iscsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 5f26e7379c..997b122141 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1238,7 +1238,8 @@ static int iscsi_has_zero_init(BlockDriverState *bs) return 0; } -static int iscsi_create(const char *filename, QEMUOptionParameter *options) +static int iscsi_create(const char *filename, QEMUOptionParameter *options, + Error **errp) { int ret = 0; int64_t total_size = 0; |