mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
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>
This commit is contained in:
@ -135,7 +135,8 @@ static int raw_create(const char *filename, QEMUOptionParameter *options)
|
||||
return bdrv_create_file(filename, options);
|
||||
}
|
||||
|
||||
static int raw_open(BlockDriverState *bs, QDict *options, int flags)
|
||||
static int raw_open(BlockDriverState *bs, QDict *options, int flags,
|
||||
Error **errp)
|
||||
{
|
||||
bs->sg = bs->file->sg;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user