diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2020-02-21 11:25:19 +0000 |
|---|---|---|
| committer | Max Reitz <mreitz@redhat.com> | 2020-03-11 12:42:29 +0100 |
| commit | 6d49d3a859b0f19226dbb0df5e7f50267b42f45c (patch) | |
| tree | 2e11ce7bd094fc8e3cd71e6a672a162d37d1a088 /scripts/qapi/introspect.py | |
| parent | ba29883206d92a29ad5a466e679ccfc2ee6132ef (diff) | |
| download | focaccia-qemu-6d49d3a859b0f19226dbb0df5e7f50267b42f45c.tar.gz focaccia-qemu-6d49d3a859b0f19226dbb0df5e7f50267b42f45c.zip | |
luks: extract qcrypto_block_calculate_payload_offset()
The qcow2 .bdrv_measure() code calculates the crypto payload offset. This logic really belongs in crypto/block.c where it can be reused by other image formats. The "luks" block driver will need this same logic in order to implement .bdrv_measure(), so extract the qcrypto_block_calculate_payload_offset() function now. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200221112522.1497712-2-stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions