mbox series

[for-4.0,0/3] freeze the backing chain earlier in stream_start()

Message ID cover.1553619891.git.berto@igalia.com
Headers show
Series freeze the backing chain earlier in stream_start() | expand

Message

Alberto Garcia March 26, 2019, 5:07 p.m. UTC
Hi,

this series fixes the bug that I found the other day and described here:

   https://lists.gnu.org/archive/html/qemu-block/2019-03/msg00764.html
   https://lists.gnu.org/archive/html/qemu-block/2019-03/msg00791.html

Patch 2 is the important one, patch 3 is a test case, and patch 1 will
allow us to detect this kind of errors earlier.

Regards,

Berto

Alberto Garcia (3):
  block: continue until base is found in bdrv_freeze_backing_chain() et
    al
  block: freeze the backing chain earlier in stream_start()
  block: test block-stream with a base node that is used by block-commit

 block.c                    | 21 ++++++++++++++-------
 block/stream.c             | 13 +++++++------
 tests/qemu-iotests/030     | 32 ++++++++++++++++++++++++++++++++
 tests/qemu-iotests/030.out |  4 ++--
 4 files changed, 55 insertions(+), 15 deletions(-)