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>,
	famz@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com,
	stefanha@redhat.com, den@openvz.org, John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v7] spec: add qcow2 bitmaps extension specification
Date: Tue, 19 Jan 2016 18:27:43 +0100	[thread overview]
Message-ID: <20160119172743.GF4579@noname.redhat.com> (raw)
In-Reply-To: <569D5648.6030605@redhat.com>

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

Am 18.01.2016 um 22:16 hat Eric Blake geschrieben:
> On 01/18/2016 09:54 AM, John Snow wrote:
> 
> >> Please, let's decide finally about extra data, than I'll reroll it and,
> >> I hope, it will be committed, to make it possible to continue work on
> >> persistence series. About extra data, I'm ready to accept any variant,
> >> strictly defining, what software should do with unknown extra data.
> >>
> >>
> > 
> > I discussed this with Eric Blake on IRC briefly, and I mentioned I was
> > concerned that we didn't specify a format at all for the extra data.
> > Eric felt that it was not unusual to leave a space for future expansion
> > and that as we haven't used it yet, we don't need to solidify it.
> > 
> > He also felt it would be unusual to stipulate the format of data that we
> > don't even intend to use yet.
> > 
> > In short, I'm being too proactive.
> > 
> > A commit message mention that, should anyone wish to expand the
> > type-specific data in the future that adding a 2-byte version as the
> > first field in extra data would probably be sufficient, and we can worry
> > about the spec wording later. It is fine to assume for now that if
> > extra_data_size is 0 that the version/format of the data is "v0" and
> > that does not limit our future expansion.
> 
> Or put another way:
> 
> I'm just fine if our initial implementation provides sufficient
> information for us to completely parse the file even when the file is
> generated by a newer qemu (we have a length, so we know how far to skip
> to find the next entry), while at the same time throwing up our hands if
> the length is non-zero (we won't read the bitmap at all, because we
> don't know if the non-zero extra_data contains instructions that would
> change how to interpret the data) or even prevent writes (if the bitmap
> entry is marked automatic, we must refuse any write that would requiring
> an update to the bitmap because we don't know how to write to a bitmap
> while correctly preserving semantics of those extra_data bytes).

Can we assume that the extra_data doesn't contain references to
clusters? Otherwise we need to forbid 'qemu-img check -r leaks' when
there is unknown extra_data.

FWIW, this assumption is already made for snapshots, so it seems okay to
make it here as well. But we could be explicit about it.

Kevin

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2016-01-19 17:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11 13:05 [Qemu-devel] [PATCH v7] spec: add qcow2 bitmaps extension specification Vladimir Sementsov-Ogievskiy
2016-01-12  0:30 ` John Snow
2016-01-14 11:35   ` Denis V. Lunev
2016-01-14 16:42     ` John Snow
2016-01-14 22:08 ` Eric Blake
2016-01-14 23:26   ` John Snow
2016-01-16 14:06     ` Vladimir Sementsov-Ogievskiy
2016-01-18 16:54       ` John Snow
2016-01-18 21:16         ` Eric Blake
2016-01-19  8:57           ` Vladimir Sementsov-Ogievskiy
2016-01-19 17:29             ` Kevin Wolf
2016-01-25 10:15               ` Vladimir Sementsov-Ogievskiy
2016-01-25 11:09                 ` Kevin Wolf
2016-01-25 12:27                   ` Vladimir Sementsov-Ogievskiy
2016-01-19 17:27           ` Kevin Wolf [this message]
2016-01-25 10:22             ` Vladimir Sementsov-Ogievskiy
2016-01-19 17:48 ` Kevin Wolf
2016-01-20 12:34   ` Vladimir Sementsov-Ogievskiy
2016-01-20 21:22     ` John Snow
2016-01-21  8:22       ` Vladimir Sementsov-Ogievskiy
2016-01-21  9:53         ` Kevin Wolf
2016-01-21 10:44           ` Vladimir Sementsov-Ogievskiy

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=20160119172743.GF4579@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=den@openvz.org \
    --cc=eblake@redhat.com \
    --cc=famz@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --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).