diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-11-30 10:52:04 -0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-12-11 11:05:10 +0100 |
commit | 71c79813d83b5b45ba934cf995436063da458f66 (patch) | |
tree | 65aa148ff433e1f7f122e451ef2f034aebce311d /qemu-img.c | |
parent | 3c42ea66888f149d72d600bab63624b2d849e4bf (diff) | |
download | qemu-71c79813d83b5b45ba934cf995436063da458f66.zip qemu-71c79813d83b5b45ba934cf995436063da458f66.tar.gz qemu-71c79813d83b5b45ba934cf995436063da458f66.tar.bz2 |
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>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 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; |