Skip to content

NBD fixes for unaligned images

Eric Blake qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: Add bdrv_get_request_alignment()block/block-backend.c include/sysemu/block-backend.h+8 -01 reply
2/4nbd/server: Advertise actual minimum block sizenbd/server.c+6 -44 replies
3/4iotests: Add 228 to test NBD on unaligned imagestests/qemu-iotests/228 tests/qemu-iotests/228.out tests/qemu-iotests/group+105 -00 replies
4/4nbd/client: Deal with unaligned size from serverblock/nbd.c+10 -12 replies

Reviews trailers per patch

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

PatchVladimir Sementsov-Ogievskiy
1/4R-b
2/4
3/4
4/4R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4 for-3.0?] NBD fixes for unaligned images

Rich reported a bug when using qemu as client to nbdkit serving a non-sector-aligned image; in turn, I found a second bug with qemu as server of such an image.

Both bugs were present in 2.12, and thus are not new regressions in 3.0. If there is a reason to spin -rc4, then these could be included; but this series alone is not a driving reason to cause -rc4.

Eric Blake (4):
block: Add bdrv_get_request_alignment() nbd/server: Advertise actual minimum block size
iotests: Add 228 to test NBD on unaligned images nbd/client: Deal with unaligned size from server

 include/sysemu/block-backend.h |  1 +
 block/block-backend.c          |  7 +++
 block/nbd.c                    | 11 ++++-
 nbd/server.c                   | 10 +++--
 tests/qemu-iotests/228         | 96 ++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/228.out     |  8 ++++
 tests/qemu-iotests/group       |  1 +
 7 files changed, 129 insertions(+), 5 deletions(-)
 create mode 100755 tests/qemu-iotests/228
 create mode 100644 tests/qemu-iotests/228.out
Signature · 1 line
2.14.4