nfs: Use QAPI options in nfs_client_open()
commitc22a03454544c2a08f1107c5cc8481a5574533d5
authorKevin Wolf <kwolf@redhat.com>
Wed, 31 Jan 2018 18:47:48 +0000 (31 19:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (9 15:17 +0100)
treec30508ae70cbb93a7b94a8ab66da15e8c6ef769d
parentaa045c2d37c831541607c0a81212f9d3f2dacad9
nfs: Use QAPI options in nfs_client_open()

Using the QAPI visitor to turn all options into QAPI BlockdevOptionsNfs
simplifies the code a lot. It will also be useful for implementing the
QAPI based .bdrv_co_create callback.

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