block: Add flush after metadata writes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | block: Add bdrv_(p)write_syncblock.c block.h | +41 | 0 replies | |
| 2/6 | cow: Use bdrv_(p)write_sync for metadata writesblock/ | +11 | 0 replies | |
| 3/6 | qcow: Use bdrv_(p)write_sync for metadata writesblock/ | +10 | 0 replies | |
| 4/6 | qcow2: Use bdrv_(p)write_sync for metadata writesblock/ block/ block/ +1 more | +40 | 0 replies | |
| 5/6 | vmdk: Use bdrv_(p)write_sync for metadata writesblock/ | +5 | 0 replies | |
| 6/6 | vpc: Use bdrv_(p)write_sync for metadata writesblock/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/6] block: Add flush after metadata writes
This addresses the data integrity problems which are described for qcow at
http://wiki.qemu.org/Features/Qcow2DataIntegrity#Metadata_update_ordering.2C_Part_2
These problems are the same for all writable image formats, so this series contains a patch for each of them.
The only exception is VDI which uses AIO for writing its metadata. It needs a different fix.
Kevin Wolf (6):
block: Add bdrv_(p)write_sync
cow: Use bdrv_(p)write_sync for metadata writes
qcow: Use bdrv_(p)write_sync for metadata writes
qcow2: Use bdrv_(p)write_sync for metadata writes
vmdk: Use bdrv_(p)write_sync for metadata writes
vpc: Use bdrv_(p)write_sync for metadata writes
block.c | 37 +++++++++++++++++++++++++++++++++++++ block.h | 4 ++++ block/cow.c | 20 +++++++++++--------- block/qcow.c | 18 ++++++++++-------- block/qcow2-cluster.c | 24 ++++++++++++------------ block/qcow2-refcount.c | 24 ++++++++++++------------ block/qcow2-snapshot.c | 23 +++++++++++------------ block/qcow2.c | 10 +++++----- block/vmdk.c | 10 +++++----- block/vpc.c | 9 +++++---- 10 files changed, 112 insertions(+), 67 deletions(-)