mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: Add options QDict to bdrv_open() prototype
It doesn't do anything yet except storing the options QDict in the BlockDriverState. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
1a86938f04
commit
de9c0cec6c
12 changed files with 54 additions and 28 deletions
|
@ -1773,7 +1773,7 @@ static int openfile(char *name, int flags, int growable)
|
|||
} else {
|
||||
bs = bdrv_new("hda");
|
||||
|
||||
if (bdrv_open(bs, name, flags, NULL) < 0) {
|
||||
if (bdrv_open(bs, name, NULL, flags, NULL) < 0) {
|
||||
fprintf(stderr, "%s: can't open device %s\n", progname, name);
|
||||
bdrv_delete(bs);
|
||||
bs = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue