diff options
author | Hyman Huang <yong.huang@smartx.com> | 2024-01-30 13:37:24 +0800 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2024-02-09 12:50:37 +0000 |
commit | 0bd779e27ee7c737fdaee2e52e6d1c5951375177 (patch) | |
tree | 718ed448aaaf6343804b27fbe72bf2cb1cb339bc /qapi/crypto.json | |
parent | 35286daeca43444aa1a9c7a36ffc499877eb6668 (diff) |
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>
Diffstat (limited to 'qapi/crypto.json')
-rw-r--r-- | qapi/crypto.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qapi/crypto.json b/qapi/crypto.json index 22c6cce3ae..ad8dd37175 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -317,6 +317,8 @@ # # @hash-alg: the master key hash algorithm # +# @detached-header: whether the LUKS header is detached (Since 9.0) +# # @payload-offset: offset to the payload data in bytes # # @master-key-iters: number of PBKDF2 iterations for key material @@ -333,6 +335,7 @@ 'ivgen-alg': 'QCryptoIVGenAlgorithm', '*ivgen-hash-alg': 'QCryptoHashAlgorithm', 'hash-alg': 'QCryptoHashAlgorithm', + 'detached-header': 'bool', 'payload-offset': 'int', 'master-key-iters': 'int', 'uuid': 'str', |