diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-04-17 13:16:01 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-04-22 12:00:20 +0200 |
commit | 98522f63f40adaebc412481e1d2e9170160d4539 (patch) | |
tree | 025ec57320b8fbec0eab0078506e41154833c111 /qemu-io.c | |
parent | 5ff679b47d151c4f73be297f96606eaefb6cc4c4 (diff) | |
download | qemu-98522f63f40adaebc412481e1d2e9170160d4539.zip qemu-98522f63f40adaebc412481e1d2e9170160d4539.tar.gz qemu-98522f63f40adaebc412481e1d2e9170160d4539.tar.bz2 |
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 'qemu-io.c')
-rw-r--r-- | qemu-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ static int openfile(char *name, int flags, int growable, QDict *opts) return 1; } } else { - qemuio_bs = bdrv_new("hda"); + qemuio_bs = bdrv_new("hda", &error_abort); if (bdrv_open(&qemuio_bs, name, NULL, opts, flags, NULL, &local_err) < 0) |