diff options
author | Alberto Garcia <berto@igalia.com> | 2017-06-19 16:40:05 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-06-26 14:51:13 +0200 |
commit | 672f0f2c4b5ee521f5ea06eadaacf8dfa99474f4 (patch) | |
tree | 90d984cf97757dcce6a92a4d08e13260437dc93c /LICENSE | |
parent | 99450c6fb9ac85e2c8097156fed78b8ef1d610e0 (diff) |
qcow2: Split do_perform_cow() into _read(), _encrypt() and _write()
This patch splits do_perform_cow() into three separate functions to
read, encrypt and write the COW regions.
perform_cow() can now read both regions first, then encrypt them and
finally write them to disk. The memory allocation is also done in
this function now, using one single buffer large enough to hold both
regions.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions