block: Use QemuOpts in bdrv_open_common()
authorKevin Wolf <kwolf@redhat.com>
Tue, 7 Apr 2015 15:12:56 +0000 (17:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 14:59:06 +0000 (16:59 +0200)
commit18edf289a8951f3a48caff3b5fe17f2d414c2924
tree5bad88684a4c265416a80d0c1b715f1012c6e7e7
parent54861b9280e95dd16c062b26a9d0adfe3608c63c
block: Use QemuOpts in bdrv_open_common()

Instead of manually parsing options and then deleting them from the
options QDict, just use QemuOpts like most other places that deal with
block device options.

More options will be added there and then QemuOpts is a lot more
manageable than open-coding everything.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c