]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Define and use QCOW2_COMPRESSED_SECTOR_SIZE
authorAlberto Garcia <berto@igalia.com>
Fri, 10 May 2019 16:22:54 +0000 (19:22 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:56 +0000 (17:08 +0200)
commitb6c246942b14d3e0dec46a6c5868ed84e7dbea19
treece424eaf7dd574d6ae54e64dcc380dac9c2de656
parent50ba5b2d994853b38fed10e0841b119da0f8b8e5
qcow2: Define and use QCOW2_COMPRESSED_SECTOR_SIZE

When an L2 table entry points to a compressed cluster the space used
by the data is specified in 512-byte sectors. This size is independent
from BDRV_SECTOR_SIZE and is specific to the qcow2 file format.

The QCOW2_COMPRESSED_SECTOR_SIZE constant defined in this patch makes
this explicit.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2.c
block/qcow2.h