tests: extend test 131 to cover availability of the discard operation
commit4248e34be9c16f93b4720d455977f782615a4d63
authorDenis V. Lunev <den@openvz.org>
Mon, 18 Sep 2023 18:00:58 +0000 (18 20:00 +0200)
committerDenis V. Lunev <den@openvz.org>
Thu, 21 Sep 2023 06:49:06 +0000 (21 08:49 +0200)
tree6390a1228b105385abc348aaa19365bd67e695dc
parentc54fb435072376ec9a6ddd4fed56543a4a735e82
tests: extend test 131 to cover availability of the discard operation

This patch contains test which minimally tests discard and new cluster
allocation logic.

The following checks are added:
* write 2 clusters, discard the first allocated
* write another cluster, check that the hole is filled
* write 2 clusters, discard the first allocated, write 1 cluster at
  non-aligned to cluster offset (2 new clusters should be allocated)

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
tests/qemu-iotests/131
tests/qemu-iotests/131.out