Updated based on other changes that have happened in the meantime:
- rely more on cleanup.h (throughout)
- split structured read for easier review (patch 2 and 3 were combined in v1)
- rely on nbdkit not leaking a server's partial answer (patch 3)
- add tests (patch 5)
- other bug fixes I found while testing it
- drop EOVERFLOW patch for now; it will be separate once upstream
NBD protocol specification is clarified
Eric Blake (5):
nbd: Implement NBD_OPT_GO client request
nbd: Refactor receive loop to prepare for structured replies
nbd: Implement structured reads from server
nbd: Implement .extents
nbd: Test .extents
plugins/nbd/nbd.c | 534 +++++++++++++++++++++++++++++++++++---
tests/Makefile.am | 3 +
tests/test-nbd-extents.sh | 113 ++++++++
3 files changed, 608 insertions(+), 42 deletions(-)
create mode 100755 tests/test-nbd-extents.sh
--
2.20.1