Skip to content

RFC block: Add flush after metadata writes

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: Add bdrv_(p)write_syncblock.c block.h+41 -00 replies
2/2qcow2: Use bdrv_(p)write_sync for metadata writesblock/qcow2-cluster.c block/qcow2-refcount.c block/qcow2-snapshot.c +1 more+29 -295 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] [RFC][PATCH 0/2] block: Add flush after metadata writes

This addresses the data integrity problems described at
http://wiki.qemu.org/Features/Qcow2DataIntegrity#Metadata_update_ordering.2C_Part_2

These problems are the same for all image formats (except raw, which doesn't have any metadata), so I'm going to add more patches for the other formats for the real patch submission.

Kevin Wolf (2):
block: Add bdrv_(p)write_sync
qcow2: Use bdrv_(p)write_sync for metadata writes

 block.c                |   37 +++++++++++++++++++++++++++++++++++++
 block.h                |    4 ++++
 block/qcow2-cluster.c  |   16 ++++++++--------
 block/qcow2-refcount.c |   18 +++++++++---------
 block/qcow2-snapshot.c |   14 +++++++-------
 block/qcow2.c          |   10 +++++-----
 6 files changed, 70 insertions(+), 29 deletions(-)