Skip to content

block: Add COR filter driver

Max Reitz qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 14 repliesIn review
  2. v19 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Renamed the driver "copy-on-read" (from just "cor") [Stefan]
- Commit message typo fix in patch 2 [Stefan, Berto]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9block: Add COR filter driverblock/Makefile.objs block/copy-on-read.c qapi/block-core.json+176 -23 replies
2/9block: BLK_PERM_WRITE includes ..._UNCHANGEDinclude/block/block.h+3 -00 replies
3/9block: Add BDRV_REQ_WRITE_UNCHANGED flagblock/io.c include/block/block.h+10 -26 replies
4/9block: Set BDRV_REQ_WRITE_UNCHANGED for COR writesblock/io.c+4 -20 replies
5/9block/quorum: Support BDRV_REQ_WRITE_UNCHANGEDblock/quorum.c+13 -60 replies
6/9block: Support BDRV_REQ_WRITE_UNCHANGED in filtersblock/blkdebug.c block/blkreplay.c block/blkverify.c +4 more+28 -140 replies
7/9iotests: Clean up wrap image in 197tests/qemu-iotests/197+1 -00 replies
8/9iotests: Copy 197 for COR filter drivertests/qemu-iotests/215 tests/qemu-iotests/215.out tests/qemu-iotests/group+147 -01 reply
9/9iotests: Add test for COR across nodestests/qemu-iotests/216 tests/qemu-iotests/216.out tests/qemu-iotests/group+146 -01 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan HajnocziAlberto GarciaKevin Wolf
SeriesR-b
1/9R-b
2/9R-b R-b
3/9R-b R-b
4/9R-b R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/9] block: Add COR filter driver

This series adds a copy-on-read block filter driver which works by simply setting the BDRV_REQ_COPY_ON_READ flag on write requests (and otherwise just passing everything through).

Cover letter of v1:
http://lists.nongnu.org/archive/html/qemu-block/2018-04/msg00285.html

v2:
- Renamed the driver "copy-on-read" (from just "cor") [Stefan]
- Commit message typo fix in patch 2 [Stefan, Berto]

git-backport-diff against v2:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/9:[0020] [FC] 'block: Add COR filter driver' 002/9:[----] [--] 'block: BLK_PERM_WRITE includes ..._UNCHANGED' 003/9:[----] [--] 'block: Add BDRV_REQ_WRITE_UNCHANGED flag' 004/9:[----] [--] 'block: Set BDRV_REQ_WRITE_UNCHANGED for COR writes' 005/9:[----] [--] 'block/quorum: Support BDRV_REQ_WRITE_UNCHANGED' 006/9:[----] [--] 'block: Support BDRV_REQ_WRITE_UNCHANGED in filters' 007/9:[----] [--] 'iotests: Clean up wrap image in 197' 008/9:[0010] [FC] 'iotests: Copy 197 for COR filter driver' 009/9:[0004] [FC] 'iotests: Add test for COR across nodes'

Max Reitz (9):
block: Add COR filter driver
block: BLK_PERM_WRITE includes ..._UNCHANGED
block: Add BDRV_REQ_WRITE_UNCHANGED flag
block: Set BDRV_REQ_WRITE_UNCHANGED for COR writes block/quorum: Support BDRV_REQ_WRITE_UNCHANGED
block: Support BDRV_REQ_WRITE_UNCHANGED in filters
iotests: Clean up wrap image in 197
iotests: Copy 197 for COR filter driver
iotests: Add test for COR across nodes

 block/Makefile.objs        |   2 +-
 qapi/block-core.json       |   5 +-
 include/block/block.h      |   9 ++-
 block/blkdebug.c           |   9 +--
 block/blkreplay.c          |   3 +
 block/blkverify.c          |   3 +
 block/copy-on-read.c       | 173 +++++++++++++++++++++++++++++++++++++++++++++
 block/io.c                 |  12 +++-
 block/mirror.c             |   2 +
 block/quorum.c             |  19 +++--
 block/raw-format.c         |   9 +--
 block/throttle.c           |   6 +-
 tests/qemu-iotests/197     |   1 +
 tests/qemu-iotests/215     | 120 +++++++++++++++++++++++++++++++
 tests/qemu-iotests/215.out |  26 +++++++
 tests/qemu-iotests/216     | 117 ++++++++++++++++++++++++++++++
 tests/qemu-iotests/216.out |  28 ++++++++
 tests/qemu-iotests/group   |   2 +
 18 files changed, 524 insertions(+), 22 deletions(-)
 create mode 100644 block/copy-on-read.c
 create mode 100755 tests/qemu-iotests/215
 create mode 100644 tests/qemu-iotests/215.out
 create mode 100755 tests/qemu-iotests/216
 create mode 100644 tests/qemu-iotests/216.out
Signature · 1 line
2.14.3