diff options
| author | Markus Armbruster | 2014-10-07 13:59:03 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2014-10-20 13:41:26 +0200 |
| commit | e4e9986b1caebebdbe53d6f9ad5b03d5ba83f4c3 (patch) | |
| tree | 5474e234274b093ee621ebc43730bc666b53af4a /block | |
| parent | nbd: Fix filename generation (diff) | |
| download | qemu-e4e9986b1caebebdbe53d6f9ad5b03d5ba83f4c3.tar.gz qemu-e4e9986b1caebebdbe53d6f9ad5b03d5ba83f4c3.tar.xz qemu-e4e9986b1caebebdbe53d6f9ad5b03d5ba83f4c3.zip | |
block: Split bdrv_new_root() off bdrv_new()
Creating an anonymous BDS can't fail. Make that obvious.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
| -rw-r--r-- | block/iscsi.c | 2 | ||||
| -rw-r--r-- | block/vvfat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 3a01de0edb..a7fb764e4d 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1519,7 +1519,7 @@ static int iscsi_create(const char *filename, QemuOpts *opts, Error **errp) IscsiLun *iscsilun = NULL; QDict *bs_options; - bs = bdrv_new("", &error_abort); + bs = bdrv_new(); /* Read out options */ total_size = DIV_ROUND_UP(qemu_opt_get_size_del(opts, BLOCK_OPT_SIZE, 0), diff --git a/block/vvfat.c b/block/vvfat.c index 731e591ec1..6c9fde017b 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2939,7 +2939,7 @@ static int enable_write_target(BDRVVVFATState *s, Error **errp) unlink(s->qcow_filename); #endif - bdrv_set_backing_hd(s->bs, bdrv_new("", &error_abort)); + bdrv_set_backing_hd(s->bs, bdrv_new()); s->bs->backing_hd->drv = &vvfat_write_target; s->bs->backing_hd->opaque = g_new(void *, 1); *(void**)s->bs->backing_hd->opaque = s; |
