crypto: Introduce 'detached-header' field in QCryptoBlockInfoLUKS
authorHyman Huang <yong.huang@smartx.com>
Tue, 30 Jan 2024 05:37:24 +0000 (13:37 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Feb 2024 12:50:37 +0000 (12:50 +0000)
commit0bd779e27ee7c737fdaee2e52e6d1c5951375177
tree718ed448aaaf6343804b27fbe72bf2cb1cb339bc
parent35286daeca43444aa1a9c7a36ffc499877eb6668
crypto: Introduce 'detached-header' field in QCryptoBlockInfoLUKS

When querying the LUKS disk with the qemu-img tool or other APIs,
add information about whether the LUKS header is detached.

Additionally, update the test case with the appropriate
modification.

Signed-off-by: Hyman Huang <yong.huang@smartx.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/block-luks.c
qapi/crypto.json
tests/qemu-iotests/210.out