]> Git Repo - qemu.git/commit
qcow2: Don't round the L1 table allocation up to the sector size
authorAlberto Garcia <[email protected]>
Sat, 18 Jan 2020 19:09:26 +0000 (20:09 +0100)
committerMax Reitz <[email protected]>
Thu, 6 Feb 2020 12:47:45 +0000 (13:47 +0100)
commitef97d608c7f069331d8141d1d59df715f4a3beaf
treeac4f7bd5b135f5cc8db8c267e1fc5ce9a927a92b
parentce95a15e4249e6b0c014e7af708a0a8e65cecfc5
qcow2: Don't round the L1 table allocation up to the sector size

The L1 table is read from disk using the byte-based bdrv_pread() and
is never accessed beyond its last element, so there's no need to
allocate more memory than that.

Signed-off-by: Alberto Garcia <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-id: b2e27214ec7b03a585931bcf383ee1ac3a641a10.1579374329[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-cluster.c
block/qcow2-refcount.c
block/qcow2-snapshot.c
block/qcow2.c
This page took 0.02291 seconds and 4 git commands to generate.