diff options
author | Max Reitz | 2013-09-05 14:45:29 +0200 |
---|---|---|
committer | Kevin Wolf | 2013-09-12 10:12:48 +0200 |
commit | 34b5d2c68eb4082c288e70fb99c61af8f7b96fde (patch) | |
tree | 7c4c1e4e248a8e044dd891b0e54de1fcc03d7434 /block/blkdebug.c | |
parent | bdrv: Use "Error" for creating images (diff) | |
download | qemu-34b5d2c68eb4082c288e70fb99c61af8f7b96fde.tar.gz qemu-34b5d2c68eb4082c288e70fb99c61af8f7b96fde.tar.xz qemu-34b5d2c68eb4082c288e70fb99c61af8f7b96fde.zip |
block: Error parameter for open functions
Add an Error ** parameter to bdrv_open, bdrv_file_open and associated
functions 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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 52d65ffcd4..be948b2fdd 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -387,8 +387,10 @@ static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags, goto fail; } - ret = bdrv_file_open(&bs->file, filename, NULL, flags); + ret = bdrv_file_open(&bs->file, filename, NULL, flags, &local_err); if (ret < 0) { + qerror_report_err(local_err); + error_free(local_err); goto fail; } |