summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorEric Blake2019-01-17 20:36:47 +0100
committerEric Blake2019-01-21 22:49:52 +0100
commit2df94eb52b68d16f8a050bc28dd94a8c7d3366ec (patch)
treeefc17966d9a61729797aabf35924bea4ff5a35e1 /include/block
parentnbd/client: Move export name into NBDExportInfo (diff)
downloadqemu-2df94eb52b68d16f8a050bc28dd94a8c7d3366ec.tar.gz
qemu-2df94eb52b68d16f8a050bc28dd94a8c7d3366ec.tar.xz
qemu-2df94eb52b68d16f8a050bc28dd94a8c7d3366ec.zip
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>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/nbd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h
index 00d3eb57d9..be19aac2fc 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -276,7 +276,7 @@ struct NBDExportInfo {
uint32_t opt_block;
uint32_t max_block;
- uint32_t meta_base_allocation_id;
+ uint32_t context_id;
};
typedef struct NBDExportInfo NBDExportInfo;