Skip to content

nbd: tighter protocol compliance

Eric Blake qemu-devel 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest11 patches 29 repliesApplied

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/11nbd: Use BDRV_REQ_FUA for better FUA where supportednbd/server.c+6 -100 replies
2/11nbd: More debug typo fixes, use correct formatsnbd/client.c nbd/server.c+49 -402 replies
3/11nbd: Quit server after any write errornbd/server.c+23 -90 replies
4/11nbd: Improve server handling of bogus commandsnbd/server.c+46 -2119 replies
5/11nbd: Reject unknown request flagsnbd/server.c+5 -00 replies
6/11nbd: Group all Linux-specific ioctl code in one placenbd/client.c nbd/server.c+13 -180 replies
7/11nbd: Clean up ioctl handling of qemu-nbd -cnbd/client.c+15 -50 replies
8/11nbd: Limit nbdflags to 16 bitsblock/nbd-client.h include/block/nbd.h nbd/client.c +2 more+25 -250 replies
9/11nbd: Add qemu-nbd -D for human-readable descriptioninclude/block/nbd.h nbd/nbd-internal.h nbd/server.c +2 more+45 -123 replies
10/11nbd: Detect servers that send unexpected error valuesnbd/client.c+3 -10 replies
11/11nbd: Avoid magic number for NBD max name sizeinclude/block/nbd.h nbd/client.c nbd/server.c+9 -30 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchAlex Bligh
1/11
2/11
3/11
4/11
5/11R-b
6/11
7/11
8/11
9/11
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 00/11] nbd: tighter protocol compliance

Fix several corner-case bugs in our implementation of the NBD protocol, both as client and as server.

Depends on Kevin's block-next branch:
git://repo.or.cz/qemu/kevin.git block-next

Also available as a tag at this location:
git fetch git://repo.or.cz/qemu/ericb.git nbd-flags-v4

Broken out of a larger v3 series[1], for easier review. There are still some places where we aren't quite compliant (for example, the protocol recommends that the client send NBD_OPT_ABORT before dropping the connection after receiving a valid server response it didn't like but which did not violate protocol), but later series will tackle that.

[1] https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg03526.html

Changes in v4: rebase to latest block-next

001/11:[----] [--] 'nbd: Use BDRV_REQ_FUA for better FUA where supported' 002/11:[0004] [FC] 'nbd: More debug typo fixes, use correct formats' 003/11:[----] [--] 'nbd: Quit server after any write error' 004/11:[----] [--] 'nbd: Improve server handling of bogus commands' 005/11:[----] [--] 'nbd: Reject unknown request flags' 006/11:[----] [--] 'nbd: Group all Linux-specific ioctl code in one place' 007/11:[----] [--] 'nbd: Clean up ioctl handling of qemu-nbd -c' 008/11:[----] [-C] 'nbd: Limit nbdflags to 16 bits' 009/11:[----] [--] 'nbd: Add qemu-nbd -D for human-readable description' 010/11:[----] [--] 'nbd: Detect servers that send unexpected error values' 011/11:[----] [--] 'nbd: Avoid magic number for NBD max name size'

Eric Blake (11):
nbd: Use BDRV_REQ_FUA for better FUA where supported
nbd: More debug typo fixes, use correct formats
nbd: Quit server after any write error
nbd: Improve server handling of bogus commands
nbd: Reject unknown request flags
nbd: Group all Linux-specific ioctl code in one place
nbd: Clean up ioctl handling of qemu-nbd -c
nbd: Limit nbdflags to 16 bits
nbd: Add qemu-nbd -D for human-readable description
nbd: Detect servers that send unexpected error values
nbd: Avoid magic number for NBD max name size

 block/nbd-client.h  |   2 +-
 include/block/nbd.h |  13 ++-
 nbd/nbd-internal.h  |   5 +-
 nbd/client.c        | 106 ++++++++++++++++---------
 nbd/server.c        | 224 +++++++++++++++++++++++++++++++---------------------
 qemu-nbd.c          |  16 +++-
 qemu-nbd.texi       |   5 +-
 7 files changed, 233 insertions(+), 138 deletions(-)
Signature · 1 line
2.5.5