From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
Nir Soffer <nirsof@gmail.com>, qemu-block <qemu-block@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Max Reitz <mreitz@redhat.com>, Nir Soffer <nsoffer@redhat.com>
Subject: Re: [PATCH] qemu-{img,nbd}: Don't report zeroed cluster as a hole
Date: Fri, 11 Jun 2021 08:31:10 -0500 [thread overview]
Message-ID: <20210611133110.dy2arokoux63m3n7@redhat.com> (raw)
In-Reply-To: <YMNHSZ+Dc8v7/80Q@redhat.com>
On Fri, Jun 11, 2021 at 01:21:45PM +0200, Kevin Wolf wrote:
> > Did you consider just add a new field?
> >
> > So, "depth" keeps its meaning "which level provides data".
> >
> > And we add additional optional field like
> >
> > absolutely-completely-absent: bool
> >
> > Which is true if data is nowhere in the backing chain.
>
> Or how about exposing BDRV_BLOCK_ALLOCATED as 'allocated': 'bool'? Which
> I think is what the conclusion was already for NBD, so doing the same in
> 'qemu-img map' would be consistent.
>
> This is, of course, almost the same as 'absolutely-completely-absent',
> just without the negating the flag.
If we want to bikeshed on a new name, I think "allocated" is going to
cause more confusion than it solves. And "hole" is wrong. Better
would be "backing":true for portions of the file that would derive
from a backing file, if a backing file had been present.
But that still feels like more work than just exposing n+1 in depth.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2021-06-11 13:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-07 20:22 [PATCH] qemu-{img,nbd}: Don't report zeroed cluster as a hole Nir Soffer
2021-06-07 21:22 ` Eric Blake
2021-06-07 22:04 ` Eric Blake
2021-06-08 16:38 ` Nir Soffer
2021-06-08 18:45 ` Eric Blake
2021-06-08 20:42 ` Nir Soffer
2021-06-10 18:34 ` Eric Blake
2021-06-10 20:09 ` Nir Soffer
2021-06-10 20:46 ` Eric Blake
2021-06-11 8:09 ` Kevin Wolf
2021-06-11 8:14 ` Vladimir Sementsov-Ogievskiy
2021-06-11 9:05 ` Nir Soffer
2021-06-11 11:14 ` Vladimir Sementsov-Ogievskiy
2021-06-11 11:21 ` Kevin Wolf
2021-06-11 13:04 ` Vladimir Sementsov-Ogievskiy
2021-06-11 13:31 ` Eric Blake [this message]
2021-06-11 13:28 ` Eric Blake
2021-06-11 17:35 ` Nir Soffer
2021-06-11 18:34 ` Eric Blake
2021-06-11 21:23 ` Nir Soffer
2021-06-11 21:41 ` 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=20210611133110.dy2arokoux63m3n7@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=nirsof@gmail.com \
--cc=nsoffer@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).