Received: from eggs.gnu.org ([2001:4830:134:3::10]:34451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCrIf-00073G-Aq for qemu-devel@nongnu.org; Tue, 14 Jun 2016 12:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCrId-0003kW-EG for qemu-devel@nongnu.org; Tue, 14 Jun 2016 12:34:48 -0400 References: <1465921477-9005-1-git-send-email-berrange@redhat.com> <1465921477-9005-3-git-send-email-berrange@redhat.com> From: Max Reitz Message-ID: <1791e0b7-c6ec-1f7a-ab71-8eb43af6c548@redhat.com> Date: Tue, 14 Jun 2016 18:34:38 +0200 MIME-Version: 1.0 In-Reply-To: <1465921477-9005-3-git-send-email-berrange@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h5GhvlvJKcvkthWBNSOj8pC8bpd5pVqVa" Subject: Re: [Qemu-devel] [PATCH v3 2/2] block: export LUKS specific data to qemu-img info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Eric Blake , Kevin Wolf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --h5GhvlvJKcvkthWBNSOj8pC8bpd5pVqVa From: Max Reitz To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Eric Blake , Kevin Wolf Message-ID: <1791e0b7-c6ec-1f7a-ab71-8eb43af6c548@redhat.com> Subject: Re: [PATCH v3 2/2] block: export LUKS specific data to qemu-img info References: <1465921477-9005-1-git-send-email-berrange@redhat.com> <1465921477-9005-3-git-send-email-berrange@redhat.com> In-Reply-To: <1465921477-9005-3-git-send-email-berrange@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 14.06.2016 18:24, Daniel P. Berrange wrote: > The qemu-img info command has the ability to expose format > specific metadata about volumes. Wire up this facility for > the LUKS driver to report on cipher configuration and key > slot usage. >=20 > $ qemu-img info ~/VirtualMachines/demo.luks > image: /home/berrange/VirtualMachines/demo.luks > file format: luks > virtual size: 98M (102760448 bytes) > disk size: 100M > encrypted: yes > Format specific information: > ivgen alg: plain64 > hash alg: sha1 > cipher alg: aes-128 > uuid: 6ddee74b-3a22-408c-8909-6789d4fa2594 > cipher mode: xts > slots: > [0]: > active: true > iters: 572706 > key offset: 4096 > stripes: 4000 > [1]: > active: false > key offset: 135168 > [2]: > active: false > key offset: 266240 > [3]: > active: false > key offset: 397312 > [4]: > active: false > key offset: 528384 > [5]: > active: false > key offset: 659456 > [6]: > active: false > key offset: 790528 > [7]: > active: false > key offset: 921600 > payload offset: 2097152 > master key iters: 142375 >=20 > One somewhat undesirable artifact is that the data fields are > printed out in (apparently) random order. This will be addressed > later by changing the way the block layer pretty-prints the > image specific data. >=20 > Signed-off-by: Daniel P. Berrange > --- > block/crypto.c | 49 ++++++++++++++++++++++++++++++++++++++++++++= +++++ > qapi/block-core.json | 6 +++++- > 2 files changed, 54 insertions(+), 1 deletion(-) Reviewed-by: Max Reitz --h5GhvlvJKcvkthWBNSOj8pC8bpd5pVqVa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXYDIfAAoJEDuxQgLoOKytcG4IAK4bFcuVFSJTkilBT9tUxvWi 8rkI6XlhJf88CiZzU/KV4SJfjoIQfR4u5LBBp/1naDX9GKSFEMvMgS1f4KB5I7n8 7TGzyC0jwi8Dj0HX9CBrOSBYM0g6QWG8cp6E4RnLDxRNcUy1ukcJBczM1Pj0qOWc HFjTvaAgwE+Vw5yq6cf9Yw76N65TX1dNw6uDgHyaiky1339b8bAuoIVV/z4QQV8E u7O7bRmScjqEWJ27LjtgNaSceiyWMUlBkN311UDbo5XDF/UfS8Brb2DKRilF4q5A fx30DdFRyZRcV3mjsGrOEAx/m8I2naKKrtcn0osiUK1rWdRRMh+rCGpIkunWjD0= =Y/Mv -----END PGP SIGNATURE----- --h5GhvlvJKcvkthWBNSOj8pC8bpd5pVqVa--