]> Git Repo - qemu.git/commit - block/qcow2-refcount.c
qcow2: truncate the tail of the image file after shrinking the image
authorPavel Butsykin <[email protected]>
Fri, 29 Sep 2017 12:16:13 +0000 (15:16 +0300)
committerMax Reitz <[email protected]>
Fri, 6 Oct 2017 14:30:48 +0000 (16:30 +0200)
commit163bc39d2c2921430e5c23f4d0a0966d62f67a02
treed0303bc2a7e3d2d346d8c1d7d361f5a453c8aed4
parent76a2a30a99c670e9ec1b4a5d976868059c6bc258
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 <[email protected]>
Reviewed-by: John Snow <[email protected]>
Message-id: 20170929121613[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-refcount.c
block/qcow2.c
block/qcow2.h
This page took 0.025461 seconds and 4 git commands to generate.