]> git.proxmox.com Git - mirror_qemu.git/commit
block: add ability to set a prefix for opt names
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 23 Jun 2017 16:24:01 +0000 (17:24 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:44:55 +0000 (17:44 +0200)
commit4a47f85431aa6bed22157f683196affe8b06c69e
treec89d51473bd21cdb6aa2f741be88f7e2785c3033
parent306a06e5f766acaf26b71397a5692c65b65a61c7
block: add ability to set a prefix for opt names

When integrating the crypto support with qcow/qcow2, we don't
want to use the bare LUKS option names "hash-alg", "key-secret",
etc. We need to namespace them to match the nested QAPI schema.

e.g. "encrypt.hash-alg", "encrypt.key-secret"

so that they don't clash with any general qcow options at a later
date.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170623162419.26068-3-berrange@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/crypto.c
block/crypto.h