nbd/client: Change signature of nbd_negotiate_simple_meta_context()
commit2df94eb52b68d16f8a050bc28dd94a8c7d3366ec
authorEric Blake <eblake@redhat.com>
Thu, 17 Jan 2019 19:36:47 +0000 (17 13:36 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 21 Jan 2019 21:49:52 +0000 (21 15:49 -0600)
treeefc17966d9a61729797aabf35924bea4ff5a35e1
parent6dc1667d6881add34e9bad48ac2a848134ea8a6d
nbd/client: Change signature of nbd_negotiate_simple_meta_context()

Pass 'info' instead of three separate parameters related to info,
when requesting the server to set the meta context.  Update the
NBDExportInfo struct to rename the received id field to match the
fact that we are currently overloading the field to match whatever
context the user supplied through the x-dirty-bitmap hack, as well
as adding a TODO comment to remind future patches about a desire
to request two contexts at once.

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