summary refs log tree commit diff stats
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-09-14 15:24:47 +0300
committerHanna Reitz <hreitz@redhat.com>2021-09-15 18:42:38 +0200
commita6e098462ba6d8585a6f21729b406ab51a70eb03 (patch)
tree6fc338ee266754df846b5653bbdc66d4190820b5 /linux-user/linux_loop.h
parent9a3978a46bc12e0c49b7114983103b07d90cfa1c (diff)
downloadfocaccia-qemu-a6e098462ba6d8585a6f21729b406ab51a70eb03.tar.gz
focaccia-qemu-a6e098462ba6d8585a6f21729b406ab51a70eb03.zip
qcow2: introduce qcow2_parse_compressed_l2_entry() helper
Add helper to parse compressed l2_entry and use it everywhere instead
of open-coding.

Note, that in most places we move to precise coffset/csize instead of
sector-aligned. Still it should work good enough for updating
refcounts.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20210914122454.141075-4-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions