qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v6 5/6] iotests: Add new test 214 for max compressed cluster offset
Date: Tue, 19 Jun 2018 13:51:36 -0500	[thread overview]
Message-ID: <3f211a15-a7e6-c062-8ac8-4aaeedcd7715@redhat.com> (raw)
In-Reply-To: <w51k1sumalp.fsf@maestria.local.igalia.com>

On 04/26/2018 07:10 AM, Alberto Garcia wrote:
> On Thu 26 Apr 2018 04:51:28 AM CEST, Eric Blake wrote:
>> If you have a capable file system (tmpfs is good, ext4 not so much;
>> run ./check with TEST_DIR pointing to a good location so as not
>> to skip the test), it's actually possible to create a qcow2 file
>> that expands to a sparse 512T image with just over 38M of content.
>> The test is not the world's fastest (qemu crawling through 256M
>> bits of refcount table to find the next cluster to allocate takes
>> several seconds, as does qemu-img check reporting millions of
>> leaked clusters); but it DOES catch the problem that the previous
>> patch just fixed where writing a compressed cluster to a full
>> image ended up overwriting the wrong cluster.
>>
>> Suggested-by: Max Reitz <mreitz@redhat.com>
>> Signed-off-by: Eric Blake <eblake@redhat.com>
> 
> Nice test :-)
> 
> Reviewed-by: Alberto Garcia <berto@igalia.com>

214 is already in the tree in the meantime; this will need a rebase to 
pick the next available test number (220 might be claimed, so 222?)

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

  reply	other threads:[~2018-06-19 18:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26  2:51 [Qemu-devel] [PATCH v6 0/6] minor qcow2 compression improvements Eric Blake
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 1/6] qcow2: Prefer byte-based calls into bs->file Eric Blake
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 2/6] qcow2: Document some maximum size constraints Eric Blake
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 3/6] qcow2: Reduce REFT_OFFSET_MASK Eric Blake
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 4/6] qcow2: Don't allow overflow during cluster allocation Eric Blake
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 5/6] iotests: Add new test 214 for max compressed cluster offset Eric Blake
2018-04-26 12:10   ` Alberto Garcia
2018-06-19 18:51     ` Eric Blake [this message]
2018-06-20 12:10       ` Alberto Garcia
2018-04-26  2:51 ` [Qemu-devel] [PATCH v6 6/6] qcow2: Avoid memory over-allocation on compressed images Eric Blake
2018-06-19 18:49 ` [Qemu-devel] [PATCH v6 0/6] minor qcow2 compression improvements Eric Blake

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=3f211a15-a7e6-c062-8ac8-4aaeedcd7715@redhat.com \
    --to=eblake@redhat.com \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --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).