Note: this series is based on the another one "block: Deal with filters" by Max Reitz that could be found in the branches: https://git.xanclic.moe/XanClic/qemu child-access-functions-v6 https://github.com/XanClic/qemu child-access-functions-v6
v6: Re-based to the series "block: Deal with filters". The minimum number of patches were kept. Not all the iotests were checked for pass. 04: The test case iotests:030:test_stream_parallel was removed due to multiple errors. Andrey Shinkevich (4): copy-on-read: Support preadv/pwritev_part functions copy-on-read: add filter append/drop functions qapi: add filter-node-name to block-stream block: apply COR-filter to block-stream jobs block/copy-on-read.c | 131 +++++++++++++++++++++++++++++++++++++---- block/copy-on-read.h | 36 +++++++++++ block/monitor/block-hmp-cmds.c | 4 +- block/stream.c | 80 +++++++++++++++++-------- blockdev.c | 8 ++- include/block/block_int.h | 7 ++- qapi/block-core.json | 6 ++ tests/qemu-iotests/030 | 50 ++-------------- tests/qemu-iotests/030.out | 4 +- 9 files changed, 240 insertions(+), 86 deletions(-) create mode 100644 block/copy-on-read.h -- 1.8.3.1