summaryrefslogtreecommitdiffstats
path: root/block/vvfat.c
diff options
context:
space:
mode:
authorKevin Wolf2014-04-17 13:16:01 +0200
committerKevin Wolf2014-04-22 12:00:20 +0200
commit98522f63f40adaebc412481e1d2e9170160d4539 (patch)
tree025ec57320b8fbec0eab0078506e41154833c111 /block/vvfat.c
parentconvert fprintf() calls to error_setg() in block/qed.c:bdrv_qed_create() (diff)
downloadqemu-98522f63f40adaebc412481e1d2e9170160d4539.tar.gz
qemu-98522f63f40adaebc412481e1d2e9170160d4539.tar.xz
qemu-98522f63f40adaebc412481e1d2e9170160d4539.zip
block: Add errp to bdrv_new()
This patch adds an errp parameter to bdrv_new() and updates all its callers. The next patches will make use of this in order to check for duplicate IDs. Most of the callers know that their ID is fine, so they can simply assert that there is no error. Behaviour doesn't change with this patch yet as bdrv_new() doesn't actually assign errors to errp. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r--block/vvfat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c
index 1978c9ed62..c3af7ff4c5 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -2947,7 +2947,7 @@ static int enable_write_target(BDRVVVFATState *s)
unlink(s->qcow_filename);
#endif
- s->bs->backing_hd = bdrv_new("");
+ s->bs->backing_hd = bdrv_new("", &error_abort);
s->bs->backing_hd->drv = &vvfat_write_target;
s->bs->backing_hd->opaque = g_malloc(sizeof(void*));
*(void**)s->bs->backing_hd->opaque = s;