Skip to content

RFC block: Backdoor to skip image locking in qemu-io/qemu-img

Fam Zheng qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: Introduce BDRV_O_UNSAFE_READblock/block-backend.c include/block/block.h+2 -11 reply
2/3qemu-img: Add --unsafe-read option to subcommandsqemu-img.c+114 -342 replies
3/3qemu-io: Add --unsafe-read optionqemu-io.c+21 -72 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3
3/3

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 RFC 0/3] block: Backdoor to skip image locking in qemu-io/qemu-img

Hi Kevin,

This tries to capture your idea to add a explicit command option in qemu-io and qemu-img for user to specify "expect inconsistent data when reading image". It's stored as a BDRV_O_ flag internally, I don't know if there is a cleaner way or not.

It's depended on by image locking series because several test cases need to be updated to use this flag.

Fam

Fam Zheng (3):
block: Introduce BDRV_O_UNSAFE_READ
qemu-img: Add --unsafe-read option to subcommands
qemu-io: Add --unsafe-read option

 block/block-backend.c |   2 +-
 include/block/block.h |   1 +
 qemu-img.c            | 148 ++++++++++++++++++++++++++++++++++++++------------
 qemu-io.c             |  28 +++++++---
 4 files changed, 137 insertions(+), 42 deletions(-)
Signature · 1 line
2.9.3