From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9gHL-0003Zt-Ut for qemu-devel@nongnu.org; Thu, 28 May 2009 10:08:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9gHH-0003W9-F5 for qemu-devel@nongnu.org; Thu, 28 May 2009 10:08:19 -0400 Received: from [199.232.76.173] (port=48764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9gHH-0003W0-AD for qemu-devel@nongnu.org; Thu, 28 May 2009 10:08:15 -0400 Received: from mx2.redhat.com ([66.187.237.31]:36714) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9gHG-0006W1-R6 for qemu-devel@nongnu.org; Thu, 28 May 2009 10:08:15 -0400 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 n4SE8Dr4004830 for ; Thu, 28 May 2009 10:08:13 -0400 From: Kevin Wolf Date: Thu, 28 May 2009 16:07:03 +0200 Message-Id: <1243519627-525-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] Split qcow2 driver List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf The current qcow2 code is a monster of 3000 lines of code. This is hardly manageable and doesn't exactly improve the driver's structure. This patch series tries to split the driver in smaller modules. It doesn't contain changes to functionality or structure, especially the latter might come later as this series makes it much clearer what the internal interfaces used by the qcow2 driver actually are. The first three patches mainly move code around. They also build up a qcow2.h header file which contains the common structs and functions used by several modules. Some functions need to become global to keep things compilable. The fourth patch cleans up the global namespace by adding a qcow2_ prefix to all of the new global functions introduced by the first patches. Kevin Wolf (4): qcow2: Split out refcount handling qcow2: Split out guest cluster functions qcow2: Split out snapshot functions qcow2: Rename global functions Makefile | 4 +- block/qcow2-cluster.c | 755 ++++++++++++++++++ block/qcow2-refcount.c | 836 +++++++++++++++++++ block/qcow2-snapshot.c | 405 ++++++++++ block/qcow2.c | 2081 +----------------------------------------------- block/qcow2.h | 203 +++++ 6 files changed, 2233 insertions(+), 2051 deletions(-) create mode 100644 block/qcow2-cluster.c create mode 100644 block/qcow2-refcount.c create mode 100644 block/qcow2-snapshot.c create mode 100644 block/qcow2.h