mbox series

[00/10] parallels: Add duplication check, refactor, fix bugs

Message ID 20220817155401.2045492-1-alexander.ivanov@virtuozzo.com (mailing list archive)
Headers show
Series parallels: Add duplication check, refactor, fix bugs | expand

Message

Alexander Ivanov Aug. 17, 2022, 3:53 p.m. UTC
This patchset depends on the patchset
[PATCH v3 0/8] parallels: Refactor the code of images checks and fix a bug

Fix an incorrect condition in out-of-image check and
incorrect data end calculation in parallels_open().

Add parallels_handle_leak() and highest_offset() helpers.

Add checking and repairing duplicate offsets in BAT.

Add tests for parallels format checks.
Refactor and fix old parallels tests.

Alexander Ivanov (10):
  parallels: Incorrect condition in out-of-image check
  parallels: Incorrect data end calculation in parallels_open
  parallels: Create parallels_handle_leak() to truncate excess clusters
  parallels: Add checking and repairing duplicate offsets in BAT
  parallels: Use highest_offset() helper in leak check
  iotests: Add out-of-image check test for parallels format
  iotests: Add leak check test for parallels format
  iotests: Add test for BAT entries duplication check
  iotests: Refactor tests of parallels images checks (131)
  iotests: Fix cluster size in parallels images tests (131)

 block/parallels.c                             | 217 +++++++++++++++---
 tests/qemu-iotests/131                        |  32 +--
 tests/qemu-iotests/131.out                    |  44 ++--
 tests/qemu-iotests/tests/parallels-checks     | 136 +++++++++++
 tests/qemu-iotests/tests/parallels-checks.out |  75 ++++++
 5 files changed, 437 insertions(+), 67 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/parallels-checks
 create mode 100644 tests/qemu-iotests/tests/parallels-checks.out