block/nbd: refactor nbd connection parameters
commit8f071c9db506e03abcb1b76ec6d3d2f9488cc3b3
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 18 Jun 2019 11:43:24 +0000 (18 14:43 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 15 Aug 2019 18:22:14 +0000 (15 13:22 -0500)
treecec22ee7cb16e837f02adbb63f60caf598bf9f71
parentb172ae2e0ed38a1d058babe6a788f97c402e0e51
block/nbd: refactor nbd connection parameters

We'll need some connection parameters to be available all the time to
implement nbd reconnect. So, let's refactor them: define additional
parameters in BDRVNBDState, drop them from function parameters, drop
nbd_client_init and separate options parsing instead from nbd_open.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20190618114328.55249-6-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: Drop useless 'if' before object_unref]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c