From: Peter Krempa <pkrempa@redhat.com>
To: Stefano Garzarella <sgarzare@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Josh Durgin <jdurgin@redhat.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org,
Markus Armbruster <armbru@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] Use of PreallocMode in block drivers
Date: Thu, 9 May 2019 15:29:13 +0200 [thread overview]
Message-ID: <20190509132913.GF10858@angien.pipo.sk> (raw)
In-Reply-To: <20190509082646.lrfllcqszjlmnyfe@steredhat>
[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]
On Thu, May 09, 2019 at 10:26:46 +0200, Stefano Garzarella wrote:
> On Wed, May 08, 2019 at 01:44:27PM +0200, Markus Armbruster wrote:
> > Stefano Garzarella <sgarzare@redhat.com> writes:
> >
> > > On Tue, May 07, 2019 at 08:34:51AM +0200, Markus Armbruster wrote:
> > >> Cc: Peter for a libvirt perspective.
> > >>
> > >> Stefano Garzarella <sgarzare@redhat.com> writes:
> > >>
> > >> > This patch adds the support of preallocation (off/full) for the RBD
> > >> > block driver.
> > >> > If available, we use rbd_writesame() to quickly fill the image when
> > >> > full preallocation is required.
> > >> >
> > >> > Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
> > >> > ---
> > >> > block/rbd.c | 149 ++++++++++++++++++++++++++++++++++++++-----
> > >> > qapi/block-core.json | 4 +-
> > >> > 2 files changed, 136 insertions(+), 17 deletions(-)
[...]
> > >> > ##
> > >> > # @BlockdevVmdkSubformat:
> > >>
> > >> The non-support of values 'metadata' and 'falloc' is not visible in
> > >> introspection, only in documentation. No reason to block this patch, as
> > >> the other block drivers have the same introspection weakness (only
> > >> sheepdog and vdi bother to document).
> > >>
> > >> Should we address the introspection weakness? Only if there's a use for
> > >> the information, I think.
> > >
> > > If the management applications will use that information (or maybe also
> > > our help pages), could be useful to have an array of 'PreallocMode'
> > > supported per-driver.
> >
> > Ideally, query-qmp-schema would show only the supported values.
> >
> > Not hard to do, just tedious: we'd get a number of sub-enums in addition
> > to the full one, and we'd have to map from sub-enum to the full one.
> >
> > QAPI language support for sub-enums would remove most of the tedium.
> > Not worthwhile unless the need for sub-enums is actually common.
>
> I should study better the QMP and QAPI to understand how to implement
> the sub-enums.
>
> If you agree, I'll put it as a background task, until somebody from
> management applications tell us his interest.
Sorry for the late response. Libvirt currently does not deal that much
with the preallocation settings. Preallocation isn't in current state
implemented at all for 'blockdev-create' and only the 'metadata' and
'falloc' modes are used in the storage driver via qemu-img.
We currently hardcode the knowledge for which formats actually support
it internally.
I'd say it's not criticall to expose this in the QMP schema but
obviously if we'll ever need to use it for a recent enough qemu it's
welcome to have a way to check.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-05-09 13:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-27 11:36 [Qemu-devel] [PATCH] block/rbd: add preallocation support Stefano Garzarella
2019-04-27 11:36 ` Stefano Garzarella
2019-04-27 12:43 ` [Qemu-devel] [Qemu-block] " Jason Dillaman
2019-04-27 12:43 ` Jason Dillaman
2019-04-29 12:47 ` Stefano Garzarella
2019-04-29 12:47 ` Stefano Garzarella
2019-04-29 13:00 ` Jason Dillaman
2019-04-29 13:00 ` Jason Dillaman
2019-04-29 14:08 ` Stefano Garzarella
2019-04-29 14:08 ` Stefano Garzarella
2019-05-07 6:34 ` [Qemu-devel] Use of PreallocMode in block drivers (was: [PATCH] block/rbd: add preallocation support) Markus Armbruster
2019-05-07 8:36 ` Stefano Garzarella
2019-05-08 11:44 ` [Qemu-devel] Use of PreallocMode in block drivers Markus Armbruster
2019-05-09 8:26 ` Stefano Garzarella
2019-05-09 12:07 ` Markus Armbruster
2019-05-10 8:36 ` Stefano Garzarella
2019-05-09 13:29 ` Peter Krempa [this message]
2019-05-10 8:38 ` Stefano Garzarella
2019-05-22 8:57 ` Stefano Garzarella
2019-05-22 16:25 ` Markus Armbruster
2019-05-23 13:39 ` Stefano Garzarella
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=20190509132913.GF10858@angien.pipo.sk \
--to=pkrempa@redhat.com \
--cc=armbru@redhat.com \
--cc=jdurgin@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sgarzare@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).