summaryrefslogtreecommitdiffstats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorPavel Butsykin2017-09-29 14:16:13 +0200
committerMax Reitz2017-10-06 16:30:48 +0200
commit163bc39d2c2921430e5c23f4d0a0966d62f67a02 (patch)
treed0303bc2a7e3d2d346d8c1d7d361f5a453c8aed4 /qemu-io.c
parentqcow2: fix return error code in qcow2_truncate() (diff)
downloadqemu-163bc39d2c2921430e5c23f4d0a0966d62f67a02.tar.gz
qemu-163bc39d2c2921430e5c23f4d0a0966d62f67a02.tar.xz
qemu-163bc39d2c2921430e5c23f4d0a0966d62f67a02.zip
qcow2: truncate the tail of the image file after shrinking the image
Now after shrinking the image, at the end of the image file, there might be a tail that probably will never be used. So we can find the last used cluster and cut the tail. Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20170929121613.25997-3-pbutsykin@virtuozzo.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions