From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52692 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPDoz-0008IL-V3 for qemu-devel@nongnu.org; Thu, 17 Jun 2010 08:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPDoy-0003Ux-EC for qemu-devel@nongnu.org; Thu, 17 Jun 2010 08:03:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33952) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPDoy-0003Uj-7N for qemu-devel@nongnu.org; Thu, 17 Jun 2010 08:03:48 -0400 From: Kevin Wolf Date: Thu, 17 Jun 2010 14:03:29 +0200 Message-Id: <1276776211-11174-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [RFC][PATCH 0/2] block: Add flush after metadata writes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@gmail.com, hch@lst.de 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(-)