qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Split qcow2 driver
@ 2009-05-28 14:07 Kevin Wolf
  2009-05-28 14:07 ` [Qemu-devel] [PATCH 1/4] qcow2: Split out refcount handling Kevin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Kevin Wolf @ 2009-05-28 14:07 UTC (permalink / raw)
  To: qemu-devel; +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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-05-28 15:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 14:07 [Qemu-devel] [PATCH 0/4] Split qcow2 driver Kevin Wolf
2009-05-28 14:07 ` [Qemu-devel] [PATCH 1/4] qcow2: Split out refcount handling Kevin Wolf
2009-05-28 14:07 ` [Qemu-devel] [PATCH 2/4] qcow2: Split out guest cluster functions Kevin Wolf
2009-05-28 14:07 ` [Qemu-devel] [PATCH 3/4] qcow2: Split out snapshot functions Kevin Wolf
2009-05-28 14:07 ` [Qemu-devel] [PATCH 4/4] qcow2: Rename global functions Kevin Wolf
2009-05-28 14:39 ` [Qemu-devel] [PATCH 0/4] Split qcow2 driver Anthony Liguori
2009-05-28 14:56   ` Kevin Wolf
2009-05-28 15:18     ` Anthony Liguori
2009-05-28 15:11   ` Mark McLoughlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).