mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
block: bdrv_img_create(): add Error ** argument
This commit adds an Error ** argument to bdrv_img_create() and set it appropriately on error. Callers of bdrv_img_create() pass NULL for the new argument and still rely on bdrv_img_create()'s return value. Next commits will change callers to use the Error object instead. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
3c42ea6688
commit
71c79813d8
4 changed files with 26 additions and 6 deletions
|
@ -362,7 +362,7 @@ static int img_create(int argc, char **argv)
|
|||
}
|
||||
|
||||
ret = bdrv_img_create(filename, fmt, base_filename, base_fmt,
|
||||
options, img_size, BDRV_O_FLAGS);
|
||||
options, img_size, BDRV_O_FLAGS, NULL);
|
||||
out:
|
||||
if (ret) {
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue