From 1dec4643d13cb3ba8315e07ce89c7fd4faaff2de Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 25 Sep 2023 14:22:41 -0500 Subject: nbd/server: Prepare for per-request filtering of BLOCK_STATUS The next commit will add support for the optional extension NBD_CMD_FLAG_PAYLOAD during NBD_CMD_BLOCK_STATUS, where the client can request that the server only return a subset of negotiated contexts, rather than all contexts. To make that task easier, this patch populates the list of contexts to return on a per-command basis (for now, identical to the full set of negotiated contexts). Signed-off-by: Eric Blake Message-ID: <20230925192229.3186470-25-eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy --- include/block/nbd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/block/nbd.h b/include/block/nbd.h index 2006497..4e7bd63 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -77,6 +77,7 @@ typedef struct NBDRequest { uint16_t flags; /* NBD_CMD_FLAG_* */ uint16_t type; /* NBD_CMD_* */ NBDMode mode; /* Determines which network representation to use */ + NBDMetaContexts *contexts; /* Used by NBD_CMD_BLOCK_STATUS */ } NBDRequest; typedef struct NBDSimpleReply { -- cgit v1.1