From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4ieY-0002Ks-Tr for qemu-devel@nongnu.org; Mon, 24 Nov 2008 16:07:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4ieV-0002I5-Ro for qemu-devel@nongnu.org; Mon, 24 Nov 2008 16:07:29 -0500 Received: from [199.232.76.173] (port=46746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4ieV-0002Hu-Lk for qemu-devel@nongnu.org; Mon, 24 Nov 2008 16:07:27 -0500 Received: from mx2.redhat.com ([66.187.237.31]:47989) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4ieV-0001YI-6S for qemu-devel@nongnu.org; Mon, 24 Nov 2008 16:07:27 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mAOL7QfC018711 for ; Mon, 24 Nov 2008 16:07:26 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mAOL7Ps2014158 for ; Mon, 24 Nov 2008 16:07:25 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mAOL7O09010865 for ; Mon, 24 Nov 2008 16:07:25 -0500 Received: from dhcp-1-237.tlv.redhat.com (localhost [127.0.0.1]) by dhcp-1-237.tlv.redhat.com (Postfix) with ESMTP id 3AB7C18D48C for ; Mon, 24 Nov 2008 23:07:42 +0200 (IST) From: Gleb Natapov Date: Mon, 24 Nov 2008 23:07:40 +0200 Message-ID: <20081124210738.11128.19342.stgit@dhcp-1-237.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/5] QCOW2 small cleanups and changing metadata update order Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, This patch series removes duplicated code from a couple of places in qcow2 and makes metadata update safer against unexpected exits. --- Gleb Natapov (5): Change order of metadata update to prevent loosing guest data because of unexpected exit. Cleanup {alloc|get}_cluster_offset(). Write table offset and size in one syscall. Introduce new helper function qcow_shedule_bh(). Remove tabs from qcow_aio_read_cb(). Fix indentation. block-qcow2.c | 386 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 192 insertions(+), 194 deletions(-) -- Gleb.