qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Uri Lublin <uril@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 0/4] keep and use backing file format (v7)
Date: Wed, 25 Mar 2009 23:55:08 +0200	[thread overview]
Message-ID: <1238018112-7569-1-git-send-email-uril@redhat.com> (raw)

In this patchset there are two main features:
1. Introduce Qcow2 extensions.
2. Keep backing file format such that no probing is needed.

1. Qcow2 extensions are build of magic (id) len (in bytes) and data.
They reside between the end of the header and the backing filename (if exists).
Unknown extensions are ignored (assumed to be added by a newer version)
Based on a work done by Shahar Frank.

2. By keeping the backing file format we:
a. Provide a way to know the backing file format without probing
   it (setting the format at creation time).
b. Enable using qcow2 format over host block devices.
   (only if the user specifically asks for it, by providing the format
   at creation time).

I've added bdrv_create2 and drv->bdrv_create2 (implemented only
by block-qcow2 currently) to pass the backing-format to create.

Also fixes a security flaw found by Daniel P. Berrange on [1]
which summarizes: "Autoprobing: just say no."

[1] http://lists.gnu.org/archive/html/qemu-devel/2008-12/msg01083.html

Changes from v6:
   Rebased.
   Postponed highest-allocated-block patches.

             reply	other threads:[~2009-03-25 21:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25 21:55 Uri Lublin [this message]
2009-03-25 21:55 ` [Qemu-devel] [PATCH 1/4] Introducing qcow2 extensions Uri Lublin
2009-03-25 21:55   ` [Qemu-devel] [PATCH 2/4] block: support known backing format for image create and open Uri Lublin
2009-03-25 21:55     ` [Qemu-devel] [PATCH 3/4] block-qcow2: keep backing file format in a qcow2 extension Uri Lublin
2009-03-25 21:55       ` [Qemu-devel] [PATCH 4/4] qemu-img: adding a "-F base_fmt" option to "qemu-img create -b" Uri Lublin
2009-03-28 17:55 ` [Qemu-devel] [PATCH 0/4] keep and use backing file format (v7) Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1238018112-7569-1-git-send-email-uril@redhat.com \
    --to=uril@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).