qcow2: rework the cluster compression routine
commit25dd077d1d0aaef23f8608468cbef9a396583b1b
authorDenis Plotnikov <dplotnikov@virtuozzo.com>
Thu, 7 May 2020 08:25:19 +0000 (7 11:25 +0300)
committerMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 12:20:31 +0000 (13 14:20 +0200)
treeac7acee4f110cc5b36c3f74f5266a2f652215559
parent572ad9783f3e728a70617ce6bf144c09de3add50
qcow2: rework the cluster compression routine

The patch enables processing the image compression type defined
for the image and chooses an appropriate method for image clusters
(de)compression.

Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200507082521.29210-3-dplotnikov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-threads.c