X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-io.c;h=475a8bd0347a1c037d8b7c33b7beb672ce520dc7;hb=6eebf958abf3f3f701116d4524ef88bb9fd6e341;hp=7b3de4277345b73e0402640bcdef2a5103ffe9f0;hpb=9e8f1835ea3ab3be83634f34c1bb8b69cd871766;p=qemu.git diff --git a/qemu-io.c b/qemu-io.c index 7b3de4277..475a8bd03 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1766,14 +1766,14 @@ static int openfile(char *name, int flags, int growable) } if (growable) { - if (bdrv_file_open(&bs, name, flags)) { + if (bdrv_file_open(&bs, name, NULL, flags)) { fprintf(stderr, "%s: can't open device %s\n", progname, name); return 1; } } 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;