qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC][PATCH 0/3] Make qemu-img create options generic
@ 2009-05-14 14:12 Kevin Wolf
  2009-05-14 14:12 ` [Qemu-devel] [RFC][PATCH 1/3] Create qemu-option.h Kevin Wolf
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kevin Wolf @ 2009-05-14 14:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf

Currently, qemu-img and the bdrv_create() interface need to carry parameters
for every single option that is used by at least one file format. We already
have a few of such format specific options (encryption for qcow2, version 6
header for VMDK, backing file for some formats) and there are more to come
(like qcow cluster size).

This patch series changes this into a more generic approach: All block drivers
contain a data structure which describes all options this driver recognizes.
qemu-img can use this structure then instead of hard-coding every single
option. An -o option is introduced for these parameteres, the format is the
usual comma separated name=value style as in -drive.

This series is not yet meant to be applied. qemu-img convert still needs to be
converted to the new interface and it's not exactly tested extensively (let
alone the state after patch 1 or 2 applied without the rest). Maybe it also
could use some better identifiers, I'm open for suggestions.

Kevin Wolf (3):
  Create qemu-option.h
  Convert all block drivers
  Convert qemu-img create

 Makefile          |    2 +-
 block-cow.c       |   24 ++++-
 block-qcow.c      |   28 +++++-
 block-qcow2.c     |   36 ++++++-
 block-raw-posix.c |   37 +++++--
 block-raw-win32.c |   20 +++-
 block-vmdk.c      |   28 +++++-
 block-vpc.c       |   21 +++-
 block-vvfat.c     |    4 +-
 block.c           |   44 ++++++--
 block.h           |    6 +-
 block_int.h       |   17 ++-
 qemu-img.c        |  133 +++++++++++++++++---------
 qemu-option.c     |  280 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 qemu-option.h     |   61 ++++++++++++
 sysemu.h          |    2 -
 vl.c              |   38 +-------
 17 files changed, 642 insertions(+), 139 deletions(-)
 create mode 100644 qemu-option.c
 create mode 100644 qemu-option.h

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

end of thread, other threads:[~2009-05-14 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 14:12 [Qemu-devel] [RFC][PATCH 0/3] Make qemu-img create options generic Kevin Wolf
2009-05-14 14:12 ` [Qemu-devel] [RFC][PATCH 1/3] Create qemu-option.h Kevin Wolf
2009-05-14 14:12 ` [Qemu-devel] [RFC][PATCH 2/3] Convert all block drivers Kevin Wolf
2009-05-14 14:12 ` [Qemu-devel] [RFC][PATCH 3/3] Convert qemu-img create Kevin Wolf

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).