Skip to content

RFC generic image locking and crash recovery

Denis V. Lunev qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5block: added lock image option and callbackblock.c include/block/block.h include/block/block_int.h +1 more+52 -020 replies
2/5block: implemented bdrv_lock_image for raw fileblock/raw-posix.c block/raw-win32.c+34 -01 reply
3/5block: added check image option and callback bdrv_is_opened_uncleanblock.c include/block/block.h include/block/block_int.h+34 -02 replies
4/5qcow2: implemented bdrv_is_opened_uncleanblock/qcow2.c block/qcow2.h+11 -11 reply
5/5block/paralels: added paralles implementation for bdrv_is_opened_uncleanblock/parallels.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH RFC 0/5] generic image locking and crash recovery

This series of patches is aimed to prevent usage of image file by different qemu instances. In case we are the first instance, and option lock is lockfile, - we lock the image file, and if check option is on, we check the file and fix it if nessecary. If one of this two ops fails - the image is closed with the error.

Patchset is not polished at all! Sent for a discussion as an alternative approach.

Olga Krishtal (5):
block: added lock image option and callback
block: implemented bdrv_lock_image for raw file
block: added check image option and callback bdrv_is_opened_unclean
qcow2: implemented bdrv_is_opened_unclean block/paralels: added paralles implementation for
bdrv_is_opened_unclean

 block.c                   | 73 +++++++++++++++++++++++++++++++++++++++++++++++
 block/parallels.c         |  7 ++++-
 block/qcow2.c             | 11 ++++++-
 block/qcow2.h             |  1 +
 block/raw-posix.c         | 15 ++++++++++
 block/raw-win32.c         | 19 ++++++++++++
 include/block/block.h     |  2 ++
 include/block/block_int.h |  2 ++
 qapi/block-core.json      |  9 ++++++
 9 files changed, 137 insertions(+), 2 deletions(-)
Signature · 1 line
2.1.4