From: Kevin Wolf <kwolf@redhat.com>
To: Max Reitz <mreitz@redhat.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/2] qcow2: Snapshot update for zero clusters
Date: Fri, 30 Aug 2013 11:47:05 +0200 [thread overview]
Message-ID: <20130830094705.GC2840@dhcp-200-207.str.redhat.com> (raw)
In-Reply-To: <1377852015-14762-1-git-send-email-mreitz@redhat.com>
Am 30.08.2013 um 10:40 hat Max Reitz geschrieben:
> When creating a snapshots, the refcount adjustment function basically
> adjusted the refcounts of any cluster with a non-zero L2 entry. However,
> the L2 entry of unallocated zero clusters is exactly one (therefore
> non-zero) which led to wrong refcount updates on cluster 0 (the main
> qcow2 header), since the cluster index for these unallocated zero clusters
> is 0.
>
> This series fixes this by taking all cluster types specifically into
> account using qcow2_get_cluster_type and handling them accordingly.
> Furthermore, a short test is added.
>
> v3:
> - forgot 062.out in v2; now added
>
> v2:
> - more thorough commit message
> - take pre-allocated zero clusters into account
> - abort on unknown cluster type
> - a test case
>
> Max Reitz (2):
> qcow2-refcount: Snapshot update for zero clusters
> qemu-iotests: Snapshotting zero clusters
>
> block/qcow2-refcount.c | 52 +++++++++++++++++++++++++------------
> tests/qemu-iotests/062 | 64 ++++++++++++++++++++++++++++++++++++++++++++++
> tests/qemu-iotests/062.out | 9 +++++++
> tests/qemu-iotests/group | 1 +
> 4 files changed, 109 insertions(+), 17 deletions(-)
> create mode 100755 tests/qemu-iotests/062
> create mode 100644 tests/qemu-iotests/062.out
Thanks, applied to the block branch.
Kevin
prev parent reply other threads:[~2013-08-30 9:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-30 8:40 [Qemu-devel] [PATCH v3 0/2] qcow2: Snapshot update for zero clusters Max Reitz
2013-08-30 8:40 ` [Qemu-devel] [PATCH v3 1/2] qcow2-refcount: " Max Reitz
2013-08-30 8:40 ` [Qemu-devel] [PATCH v3 2/2] qemu-iotests: Snapshotting " Max Reitz
2013-08-30 9:47 ` Kevin Wolf [this message]
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=20130830094705.GC2840@dhcp-200-207.str.redhat.com \
--to=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).