From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4GKL-0000CR-Q6 for qemu-devel@nongnu.org; Sun, 23 Nov 2008 09:52:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4GKH-0000Br-Th for qemu-devel@nongnu.org; Sun, 23 Nov 2008 09:52:44 -0500 Received: from [199.232.76.173] (port=60083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4GKH-0000Bo-Nn for qemu-devel@nongnu.org; Sun, 23 Nov 2008 09:52:41 -0500 Received: from mx2.redhat.com ([66.187.237.31]:51099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4GKH-0004Cf-P1 for qemu-devel@nongnu.org; Sun, 23 Nov 2008 09:52:42 -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 mANEqb1V003856 for ; Sun, 23 Nov 2008 09:52:39 -0500 From: Gleb Natapov Date: Sun, 23 Nov 2008 16:52:50 +0200 Message-ID: <20081123145248.22178.36228.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 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 | 394 ++++++++++++++++++++++++++++----------------------------- 1 files changed, 192 insertions(+), 202 deletions(-) -- Gleb.