diff options
| author | Max Reitz | 2013-09-05 14:22:29 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2013-09-12 10:12:47 +0200 |
| commit | 015a1036a74ad29bb6916754911ce25587ff4db3 (patch) | |
| tree | 46dacfeda73bb70c5a4e003619c3604355db1b8f /block/blkdebug.c | |
| parent | qemu-iotests: add 057 internal snapshot for block device test case (diff) | |
| download | qemu-015a1036a74ad29bb6916754911ce25587ff4db3.tar.gz qemu-015a1036a74ad29bb6916754911ce25587ff4db3.tar.xz qemu-015a1036a74ad29bb6916754911ce25587ff4db3.zip | |
bdrv: Use "Error" for opening images
Add an Error ** parameter to BlockDriver.bdrv_open and
BlockDriver.bdrv_file_open to allow more specific error messages.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
| -rw-r--r-- | block/blkdebug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 5d33e03608..52d65ffcd4 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -350,7 +350,8 @@ static QemuOptsList runtime_opts = { }, }; -static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags) +static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags, + Error **errp) { BDRVBlkdebugState *s = bs->opaque; QemuOpts *opts; |
