]> git.ipfire.org Git - thirdparty/qemu.git/commit - nbd/trace-events
nbd/client: Split out nbd_send_meta_query()
authorEric Blake <eblake@redhat.com>
Thu, 17 Jan 2019 19:36:48 +0000 (13:36 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 21 Jan 2019 21:49:52 +0000 (15:49 -0600)
commit757b3ab989dea1c3143dd0d499441415ac7fcbc0
treec4835dc01ee5aa6a1d0f55baeb3d7919c93e4371
parent2df94eb52b68d16f8a050bc28dd94a8c7d3366ec
nbd/client: Split out nbd_send_meta_query()

Refactor nbd_negotiate_simple_meta_context() to pull out the
code that can be reused to send a LIST request for 0 or 1 query.
No semantic change.  The old comment about 'sizeof(uint32_t)'
being equivalent to '/* number of queries */' is no longer
needed, now that we are computing 'sizeof(queries)' instead.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Message-Id: <20190117193658.16413-12-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
nbd/client.c
nbd/trace-events