From: Max Reitz <mreitz@redhat.com>
To: qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Alberto Garcia <berto@igalia.com>, Kevin Wolf <kwolf@redhat.com>
Subject: [Qemu-devel] [PATCH v2 0/9] block: Add COR filter driver
Date: Sat, 21 Apr 2018 15:29:20 +0200 [thread overview]
Message-ID: <20180421132929.21610-1-mreitz@redhat.com> (raw)
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
--
2.14.3
next reply other threads:[~2018-04-21 13:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-21 13:29 Max Reitz [this message]
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 1/9] block: Add COR filter driver Max Reitz
2018-04-24 15:08 ` Alberto Garcia
2018-04-25 11:18 ` Max Reitz
2018-04-25 11:35 ` Alberto Garcia
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 2/9] block: BLK_PERM_WRITE includes ..._UNCHANGED Max Reitz
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 3/9] block: Add BDRV_REQ_WRITE_UNCHANGED flag Max Reitz
2018-04-25 14:33 ` Eric Blake
2018-04-25 15:08 ` Max Reitz
2018-04-26 2:12 ` Eric Blake
2018-04-26 8:58 ` Kevin Wolf
2018-04-28 11:19 ` Max Reitz
2018-04-30 8:41 ` Kevin Wolf
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 4/9] block: Set BDRV_REQ_WRITE_UNCHANGED for COR writes Max Reitz
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 5/9] block/quorum: Support BDRV_REQ_WRITE_UNCHANGED Max Reitz
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 6/9] block: Support BDRV_REQ_WRITE_UNCHANGED in filters Max Reitz
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 7/9] iotests: Clean up wrap image in 197 Max Reitz
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 8/9] iotests: Copy 197 for COR filter driver Max Reitz
2018-04-24 15:17 ` Alberto Garcia
2018-04-21 13:29 ` [Qemu-devel] [PATCH v2 9/9] iotests: Add test for COR across nodes Max Reitz
2018-04-24 16:50 ` Kevin Wolf
2018-04-24 16:51 ` [Qemu-devel] [PATCH v2 0/9] block: Add COR filter driver Kevin Wolf
2018-04-25 12:18 ` Max Reitz
2018-04-25 14:36 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180421132929.21610-1-mreitz@redhat.com \
--to=mreitz@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).