On 15.09.23 18:20, Andrey Drobyshev wrote:
As the previous commit changes the logic of "qemu-img rebase" (it's using
write alignment now), let's add a couple more test cases which would
ensure it works correctly.  In particular, the following scenarios:

024: add test case for rebase within one backing chain when the overlay
      cluster size > backings cluster size;
271: add test case for rebase images that contain subclusters.  Check
      that no extra allocations are being made.

Signed-off-by: Andrey Drobyshev <[email protected]>
---
  tests/qemu-iotests/024     | 60 ++++++++++++++++++++++++++++++++++
  tests/qemu-iotests/024.out | 43 +++++++++++++++++++++++++
  tests/qemu-iotests/271     | 66 ++++++++++++++++++++++++++++++++++++++
  tests/qemu-iotests/271.out | 42 ++++++++++++++++++++++++
  4 files changed, 211 insertions(+)

Interestingly, the new case in 024 hangs before this series.  So it isn’t just an optimization, but a fix, actually!

Reviewed-by: Hanna Czenczek <[email protected]>


Reply via email to