OSDN Git Service

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