qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
	qemu-devel@nongnu.org, jsnow@redhat.com, famz@redhat.com,
	qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v10 05/20] dirty-bitmap: Avoid size query failure during truncate
Date: Mon, 2 Oct 2017 18:06:15 +0200	[thread overview]
Message-ID: <20171002160615.GG4362@localhost.localdomain> (raw)
In-Reply-To: <b10bd108-0387-34eb-9aa4-7c5e3f9f63a1@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Am 25.09.2017 um 17:46 hat Eric Blake geschrieben:
> On 09/25/2017 10:23 AM, Vladimir Sementsov-Ogievskiy wrote:
> > 25.09.2017 17:55, Eric Blake wrote:
> >> We've previously fixed several places where we failed to account
> >> for possible errors from bdrv_nb_sectors().  Fix another one by
> >> making bdrv_dirty_bitmap_truncate() take the new size from the
> >> caller instead of querying itself; then adjust the sole caller
> >> bdrv_truncate() to pass the size just determined by a successful
> >> resize, or to skip the bitmap resize on failure, thus avoiding
> > 
> > nothing is skipped in this version
> 
> So much for me squashing in a change.  If the maintainer is willing
> (Kevin, is this going through your tree?), we can reword that to:
> 
> "...pass the size just determined by a successful resize, or to reuse
> the size given to the original truncate operation when
> refresh_total_sectors() was not able to confirm the actual size (the two
> sizes can potentially differ according to rounding constraints), thus
> avoiding..."

I always thought sentences that long were only allowed in German.

Anyway, I'm squashing it in.

Kevin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-10-02 16:06 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 14:55 [Qemu-devel] [PATCH v10 00/20] make dirty-bitmap byte-based Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 01/20] block: Make bdrv_img_create() size selection easier to read Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 02/20] hbitmap: Rename serialization_granularity to serialization_align Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 03/20] qcow2: Ensure bitmap serialization is aligned Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 04/20] dirty-bitmap: Drop unused functions Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 05/20] dirty-bitmap: Avoid size query failure during truncate Eric Blake
2017-09-25 15:23   ` Vladimir Sementsov-Ogievskiy
2017-09-25 15:46     ` Eric Blake
2017-10-02 16:06       ` Kevin Wolf [this message]
2017-09-25 20:54   ` John Snow
2017-09-26  1:25   ` Fam Zheng
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 06/20] dirty-bitmap: Change bdrv_dirty_bitmap_size() to report bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 07/20] dirty-bitmap: Track bitmap size by bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 08/20] dirty-bitmap: Change bdrv_dirty_bitmap_*serialize*() to take bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 09/20] qcow2: Switch sectors_covered_by_bitmap_cluster() to byte-based Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 10/20] dirty-bitmap: Set iterator start by offset, not sector Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 11/20] dirty-bitmap: Change bdrv_dirty_iter_next() to report byte offset Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 12/20] dirty-bitmap: Change bdrv_get_dirty_count() to report bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 13/20] dirty-bitmap: Change bdrv_get_dirty_locked() to take bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 14/20] dirty-bitmap: Change bdrv_[re]set_dirty_bitmap() to use bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 15/20] mirror: Switch mirror_dirty_init() to byte-based iteration Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 16/20] qcow2: Switch qcow2_measure() " Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 17/20] qcow2: Switch load_bitmap_data() " Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 18/20] qcow2: Switch store_bitmap_data() " Eric Blake
2017-09-25 15:22   ` Vladimir Sementsov-Ogievskiy
2017-09-25 21:00   ` John Snow
2017-09-26  1:30   ` Fam Zheng
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 19/20] dirty-bitmap: Switch bdrv_set_dirty() to bytes Eric Blake
2017-09-25 14:55 ` [Qemu-devel] [PATCH v10 20/20] dirty-bitmap: Convert internal hbitmap size/granularity Eric Blake
2017-09-25 22:18 ` [Qemu-devel] [PATCH v10 00/20] make dirty-bitmap byte-based John Snow
2017-10-02 16:22 ` Kevin Wolf

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=20171002160615.GG4362@localhost.localdomain \
    --to=kwolf@redhat.com \
    --cc=eblake@redhat.com \
    --cc=famz@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=vsementsov@virtuozzo.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).