block: reopen: Extract QemuOpts for generic block layer options
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2015 15:24:56 +0000 (17:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:43 +0000 (14:34 +0100)
commitccf9dc07b5c8f3b927d53e9ef8c712c2973d79c7
tree2e37d4202f4c17a61518986a1e85d932c0e510ff
parentfc17c259314d066109eb3810e2a83348d531426a
block: reopen: Extract QemuOpts for generic block layer options

This patch adds a QemuOpts for generic block layer options to
bdrv_reopen_prepare(). The only two options that currently exist
(node-name and driver) cannot be changed, so the only thing we do is
putting them right back into the QDict so that we check at the end that
they are indeed unchanged.

We will add new options soon that can actually be changed.

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