mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
crypto: Modify the qcrypto_block_create to support creation flags
Expand the signature of qcrypto_block_create to enable the formation of LUKS volumes with detachable headers. To accomplish that, introduce QCryptoBlockCreateFlags to instruct the creation process to set the payload_offset_sector to 0. 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>
This commit is contained in:
parent
433957bb7f
commit
d74523a3b3
8 changed files with 42 additions and 10 deletions
|
@ -283,6 +283,7 @@ static void test_block(gconstpointer opaque)
|
|||
test_block_init_func,
|
||||
test_block_write_func,
|
||||
&header,
|
||||
0,
|
||||
&error_abort);
|
||||
g_assert(blk);
|
||||
|
||||
|
@ -362,6 +363,7 @@ test_luks_bad_header(gconstpointer data)
|
|||
test_block_init_func,
|
||||
test_block_write_func,
|
||||
&buf,
|
||||
0,
|
||||
&error_abort);
|
||||
g_assert(blk);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue