]> Git Repo - qemu.git/commit - nbd/client.c
nbd/client: Split out nbd_receive_one_meta_context()
authorEric Blake <[email protected]>
Thu, 17 Jan 2019 19:36:49 +0000 (13:36 -0600)
committerEric Blake <[email protected]>
Mon, 21 Jan 2019 21:49:52 +0000 (15:49 -0600)
commit0182c1aed9e6a9314023c7264c5c264da2f4a4ce
tree4dac04b8a559a32756a6618ebf4a78a0c382d82b
parent757b3ab989dea1c3143dd0d499441415ac7fcbc0
nbd/client: Split out nbd_receive_one_meta_context()

Extract portions of nbd_negotiate_simple_meta_context() to
a new function nbd_receive_one_meta_context() that copies the
pattern of nbd_receive_list() for performing the argument
validation of one reply.  The error message when the server
replies with more than one context changes slightly, but
that shouldn't happen in the common case.

Signed-off-by: Eric Blake <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20190117193658[email protected]>
nbd/client.c
nbd/trace-events
This page took 0.021342 seconds and 4 git commands to generate.