diff options
author | Max Reitz <mreitz@redhat.com> | 2013-09-05 14:22:29 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-12 10:12:47 +0200 |
commit | 015a1036a74ad29bb6916754911ce25587ff4db3 (patch) | |
tree | 46dacfeda73bb70c5a4e003619c3604355db1b8f /block/snapshot.c | |
parent | 8023090be592514dea4975428543edd598c65fc3 (diff) | |
download | qemu-015a1036a74ad29bb6916754911ce25587ff4db3.tar.gz qemu-015a1036a74ad29bb6916754911ce25587ff4db3.tar.bz2 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/snapshot.c')
-rw-r--r-- | block/snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/snapshot.c b/block/snapshot.c index 82e602fccf..a05c0c0be0 100644 --- a/block/snapshot.c +++ b/block/snapshot.c @@ -170,7 +170,7 @@ int bdrv_snapshot_goto(BlockDriverState *bs, if (bs->file) { drv->bdrv_close(bs); ret = bdrv_snapshot_goto(bs->file, snapshot_id); - open_ret = drv->bdrv_open(bs, NULL, bs->open_flags); + open_ret = drv->bdrv_open(bs, NULL, bs->open_flags, NULL); if (open_ret < 0) { bdrv_unref(bs->file); bs->drv = NULL; |