mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
block: Make errp the last parameter of bdrv_img_create
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-6-famz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
1a9a7f25a0
commit
9217283dc8
5 changed files with 13 additions and 13 deletions
|
@ -144,18 +144,18 @@ static void prepare_imgs(void)
|
|||
|
||||
/* Primary */
|
||||
bdrv_img_create(p_local_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE,
|
||||
BDRV_O_RDWR, &local_err, true);
|
||||
BDRV_O_RDWR, true, &local_err);
|
||||
g_assert(!local_err);
|
||||
|
||||
/* Secondary */
|
||||
bdrv_img_create(s_local_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE,
|
||||
BDRV_O_RDWR, &local_err, true);
|
||||
BDRV_O_RDWR, true, &local_err);
|
||||
g_assert(!local_err);
|
||||
bdrv_img_create(s_active_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE,
|
||||
BDRV_O_RDWR, &local_err, true);
|
||||
BDRV_O_RDWR, true, &local_err);
|
||||
g_assert(!local_err);
|
||||
bdrv_img_create(s_hidden_disk, "qcow2", NULL, NULL, NULL, IMG_SIZE,
|
||||
BDRV_O_RDWR, &local_err, true);
|
||||
BDRV_O_RDWR, true, &local_err);
|
||||
g_assert(!local_err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue