From: Kevin Wolf <kwolf@redhat.com>
To: Or Ozeri <oro@il.ibm.com>
Cc: berrange@redhat.com, qemu-block@nongnu.org,
qemu-devel@nongnu.org, to.my.trociny@gmail.com,
idryomov@gmail.com, dannyh@il.ibm.com
Subject: Re: [PATCH v1] block/raw-format: implement .bdrv_get_specific_info handler
Date: Wed, 7 Jul 2021 09:51:47 +0200 [thread overview]
Message-ID: <YOVdE/7VLcyE0/P/@redhat.com> (raw)
In-Reply-To: <20210707053543.2521677-1-oro@il.ibm.com>
Am 07.07.2021 um 07:35 hat Or Ozeri geschrieben:
> When using the raw format, allow exposing specific info by the underlying storage.
> In particular, this will enable RBD images using the raw format to indicate
> a LUKS2 encrypted image in the output of qemu-img info.
>
> Signed-off-by: Or Ozeri <oro@il.ibm.com>
This doesn't feel right because it would introduce an inconsistency
(drivers are supposed to return information about their layer, and all
drivers except raw would still do so) and therefore wouldn't even solve
the full problem: For non-raw images, the information isn't any less
useful, but it still wouldn't be available.
I believe the information is already available in QMP, using
query-named-block-nodes, because then you get a separate BlockDeviceInfo
(which contains ImageInfoSpecific) for each node, including the protocol
node.
So maybe what we need to do is change qemu-img to iterate the node chain
(possibly using bdrv_primary_bs()) and print the ImageInfoSpecific for
each layer if it's present, while indicating which part is for which
layer.
So the output could look like this:
...
Driver specific information (qcow2):
compat: 0.10
compression type: zlib
refcount bits: 16
Driver specific information (rbd):
encryption format: luks
Kevin
next prev parent reply other threads:[~2021-07-07 7:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-07 5:35 [PATCH v1] block/raw-format: implement .bdrv_get_specific_info handler Or Ozeri
2021-07-07 7:51 ` Kevin Wolf [this message]
[not found] ` <OFCAC1F821.335F9C72-ON0025870B.00309CB1-0025870B.00309CB5@ibm.com>
2021-07-07 12:31 ` 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=YOVdE/7VLcyE0/P/@redhat.com \
--to=kwolf@redhat.com \
--cc=berrange@redhat.com \
--cc=dannyh@il.ibm.com \
--cc=idryomov@gmail.com \
--cc=oro@il.ibm.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=to.my.trociny@gmail.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).