diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-10-07 13:59:03 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-10-20 13:41:26 +0200 |
commit | e4e9986b1caebebdbe53d6f9ad5b03d5ba83f4c3 (patch) | |
tree | 5474e234274b093ee621ebc43730bc666b53af4a /blockdev.c | |
parent | ec0de76874462c745a1600911bd81ee0253c0c23 (diff) |
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 'blockdev.c')
-rw-r--r-- | blockdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index e595910476..7608f469ef 100644 --- a/blockdev.c +++ b/blockdev.c @@ -523,7 +523,7 @@ static DriveInfo *blockdev_init(const char *file, QDict *bs_opts, } /* init */ - bs = bdrv_new(qemu_opts_id(opts), errp); + bs = bdrv_new_root(qemu_opts_id(opts), errp); if (!bs) { goto early_err; } |