]> git.ipfire.org Git - thirdparty/qemu.git/commit
parallels: update used bitmap in allocate_cluster
authorDenis V. Lunev <den@openvz.org>
Mon, 18 Sep 2023 18:00:54 +0000 (20:00 +0200)
committerDenis V. Lunev <den@openvz.org>
Thu, 21 Sep 2023 06:48:21 +0000 (08:48 +0200)
commiteeb1e6dc49e7a550c8f1d843a707b93e11cabf8b
tree1ab76f266d63a4019b8b6b00936a0c699e2d2f04
parent73194d3f54d04088f1821f98280da5eb6fb0a4c3
parallels: update used bitmap in allocate_cluster

We should extend the bitmap if the file is extended and set the bit in
the image used bitmap once the cluster is allocated. Sanity check at
that moment also looks like a good idea.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
block/parallels.c