block/nbd: Use QemuOpts for runtime options
authorMax Reitz <mreitz@redhat.com>
Mon, 15 Aug 2016 13:29:24 +0000 (15:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 15 Aug 2016 13:52:28 +0000 (15:52 +0200)
commit7ccc44fd7d1dfa62c4d6f3a680df809d6e7068ce
treec9af0072ab148044d6ad6fa4e6ae467a1d85a700
parent8a6a80896d6af03b8ee0c17cdf37219eca2588a7
block/nbd: Use QemuOpts for runtime options

Using QemuOpts will prevent qemu from crashing if the input options have
not been validated (which is the case when they are specified on the
command line or in a json: filename) and some have the wrong type.

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