nbd: Accept -drive options for the network connection
commitf53a1febcd9d887149ac1429880a3f2fdb2c117f
authorKevin Wolf <kwolf@redhat.com>
Thu, 7 Mar 2013 15:15:11 +0000 (7 16:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2013 16:51:32 +0000 (22 17:51 +0100)
tree95803360968b6fe8198119ab36487f7f92da73ef
parent197a4859b914559489f41b63fd71ea4bfda17c3d
nbd: Accept -drive options for the network connection

The existing parsers for the file name now parse everything into the
bdrv_open() options QDict. Instead of using these parsers, you can now
directly specify the options on the command line, like this:

    qemu-system-x86_64 -drive file=nbd:,file.port=1234,file.host=::1

Clearly the file=... part could use further improvement, but it's a
start.

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