On 11/20/19 8:03 AM, Kevin Wolf wrote:
Signed-off-by: Kevin Wolf <kw...@redhat.com>
---
  tests/qemu-iotests/274        | 131 +++++++++++++++++++++++++++++
  tests/qemu-iotests/274.out    | 150 ++++++++++++++++++++++++++++++++++
  tests/qemu-iotests/group      |   1 +
  tests/qemu-iotests/iotests.py |   2 +-
  4 files changed, 283 insertions(+), 1 deletion(-)
  create mode 100755 tests/qemu-iotests/274
  create mode 100644 tests/qemu-iotests/274.out


+def create_chain():
+    iotests.qemu_img_log('create', '-f', iotests.imgfmt, base,
+                         str(size_long))
+    iotests.qemu_img_log('create', '-f', iotests.imgfmt, '-b', base, mid,
+                         str(size_short))
+    iotests.qemu_img_log('create', '-f', iotests.imgfmt, '-b', mid, top,
+                         str(size_long))
+
+    iotests.qemu_io_log('-c', 'write -P 1 0 %d' % size_long, base)

Matches the setup in the cover letter, and definitely exposes the issues at hand.

Reviewed-by: Eric Blake <ebl...@redhat.com>

As leaving this bug open represents a data leak/corruption to guests, I think this series counts as worthy of -rc3.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to