qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/6] iotests: Test committing to short backing file


From: Eric Blake
Subject: Re: [PATCH 6/6] iotests: Test committing to short backing file
Date: Wed, 20 Nov 2019 08:52:27 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 11/20/19 8:03 AM, Kevin Wolf wrote:
Signed-off-by: Kevin Wolf <address@hidden>
---
  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 <address@hidden>

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

[Prev in Thread] Current Thread [Next in Thread]