nbd: Refactor reply to NBD_OPT_EXPORT_NAME
commit23e099c34c6c5d774af37be8f7b57a9e563c58f4
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 20:30:45 +0000 (7 15:30 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:42 +0000 (14 12:04 +0200)
treede13b4a48f2bb1b5d76b1a2d2273fa112e830a3b
parent621c4f4eabff26493494909fc91aeac7e8205438
nbd: Refactor reply to NBD_OPT_EXPORT_NAME

Reply directly in nbd_negotiate_handle_export_name(), rather than
waiting until nbd_negotiate_options() completes.  This will make it
easier to implement NBD_OPT_GO.  Pass additional parameters around,
rather than stashing things inside NBDClient.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20170707203049.534-6-eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
nbd/server.c