16.02.2018 23:40, Eric Blake wrote:
On 02/15/2018 07:51 AM, Vladimir Sementsov-Ogievskiy wrote:
Minimal realization: only one extent in server answer is supported.
Flag NBD_CMD_FLAG_REQ_ONE is used to force this behavior.
Tests 140, 147 and 205 are fixed due to now server failed on searching
export in context of NBD_OPT_SET_META_CONTEXT option negotiation.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
---
[...]
+
static int nbd_co_request(BlockDriverState *bs, NBDRequest *request,
QEMUIOVector *write_qiov)
{
@@ -784,6 +878,50 @@ int nbd_client_co_pdiscard(BlockDriverState *bs,
int64_t offset, int bytes)
return nbd_co_request(bs, &request, NULL);
}
+int64_t coroutine_fn
nbd_client_co_get_block_status(BlockDriverState *bs,
+ int64_t sector_num,
+ int nb_sectors,
int *pnum,
+ BlockDriverState **file)
Needs rebasing on top of Kevin's block branch to use the byte-based
interface. I also need to finish up my promised followups on that
series, as NBD (and other protocol drivers) should have consistent
behavior on what it means to report OFFSET_VALID (or whether that
should be limited to just format/filter drivers).
Looks like it's already in master, so I should just rebase on master.--
Best regards,
Vladimir