aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2018-06-20 17:48:36 +0300
committerKevin Wolf <kwolf@redhat.com>2018-07-05 10:29:00 +0200
commit2714f13d69adf73638842729ccfb3bdd6d5ee98f (patch)
treebffa272114f2b264f94cb8f05c3509f0eaf2c1b1 /block/qcow2.h
parent88481329c0a43373f994f0c8ed19e888a8c86830 (diff)
downloadqemu-2714f13d69adf73638842729ccfb3bdd6d5ee98f.zip
qemu-2714f13d69adf73638842729ccfb3bdd6d5ee98f.tar.gz
qemu-2714f13d69adf73638842729ccfb3bdd6d5ee98f.tar.bz2
qcow2: refactor data compression
Make a separate function for compression to be parallelized later. - use .avail_out field instead of .next_out to calculate size of compressed data. It looks more natural and it allows to keep dest to be void pointer - set avail_out to be at least one byte less than input, to be sure avoid inefficient compression earlier Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2.h')
0 files changed, 0 insertions, 0 deletions