parallels: collect bitmap of used clusters at open
authorDenis V. Lunev <den@openvz.org>
Mon, 18 Sep 2023 18:00:50 +0000 (20:00 +0200)
committerDenis V. Lunev <den@openvz.org>
Thu, 21 Sep 2023 06:47:34 +0000 (08:47 +0200)
commite185100fec3819dd51403c0abcdc899341cc67c1
tree765e2fd3f4aaff73fe942c60dc9554e607c73f69
parent9425a9441ae1ff633ae574b879b0e7fc99fba0cb
parallels: collect bitmap of used clusters at open

If the operation is failed, we need to check image consistency if the
problem is not about memory allocation.

Bitmap adjustments in allocate_cluster are not performed yet.
They worth to be separate. This was proven useful during debug of this
series. Kept as is for future bissecting.

It should be specifically noted that used bitmap must be recalculated
if data_off has been fixed during image consistency check.

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