block/rbd: Add luks-any encryption opening option
commitb8f218ef6036d4d62968f6da9319c9d0663539dd
authorOr Ozeri <oro@il.ibm.com>
Sun, 29 Jan 2023 11:31:19 +0000 (29 05:31 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Feb 2023 18:49:35 +0000 (23 19:49 +0100)
tree5513fc3e2c1634cf99a25eef6b2660332df78ccb
parenta4ac51ac4ebebf812e20e7572e62bc1b8d569617
block/rbd: Add luks-any encryption opening option

Ceph RBD encryption API required specifying the encryption format
for loading encryption. The supported formats were LUKS (v1) and LUKS2.

Starting from Reef release, RBD also supports loading with "luks-any" format,
which works for both versions of LUKS.

This commit extends the qemu rbd driver API to enable qemu users to use
this luks-any wildcard format.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
Message-Id: <20230129113120.722708-3-oro@oro.sl.cloud9.ibm.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c
qapi/block-core.json