From nobody Tue Feb 10 04:15:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1492747897432315.91134230848286; Thu, 20 Apr 2017 21:11:37 -0700 (PDT) Received: from localhost ([::1]:57063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1Pux-0001Pz-Nw for importer@patchew.org; Fri, 21 Apr 2017 00:11:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1PhG-0006j7-AA for qemu-devel@nongnu.org; Thu, 20 Apr 2017 23:57:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1PhC-0004GH-Bg for qemu-devel@nongnu.org; Thu, 20 Apr 2017 23:57:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26716) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1Ph3-0004Ah-9y; Thu, 20 Apr 2017 23:57:13 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 355E378245; Fri, 21 Apr 2017 03:57:12 +0000 (UTC) Received: from lemon.redhat.com (ovpn-8-35.pek2.redhat.com [10.72.8.35]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1708817966; Fri, 21 Apr 2017 03:57:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 355E378245 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=famz@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 355E378245 From: Fam Zheng To: qemu-devel@nongnu.org Date: Fri, 21 Apr 2017 11:56:06 +0800 Message-Id: <20170421035606.448-21-famz@redhat.com> In-Reply-To: <20170421035606.448-1-famz@redhat.com> References: <20170421035606.448-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 21 Apr 2017 03:57:12 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v14 20/20] qemu-iotests: Add test case 153 for image locking X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Fam Zheng --- tests/qemu-iotests/153 | 219 ++++++++++++++++ tests/qemu-iotests/153.out | 627 +++++++++++++++++++++++++++++++++++++++++= ++++ tests/qemu-iotests/group | 1 + 3 files changed, 847 insertions(+) create mode 100755 tests/qemu-iotests/153 create mode 100644 tests/qemu-iotests/153.out diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 new file mode 100755 index 0000000..ff22615 --- /dev/null +++ b/tests/qemu-iotests/153 @@ -0,0 +1,219 @@ +#!/bin/bash +# +# Test image locking +# +# Copyright 2016, 2017 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +# creator +owner=3Dfamz@redhat.com + +seq=3D"$(basename $0)" +echo "QA output created by $seq" + +here=3D"$PWD" +tmp=3D/tmp/$$ +status=3D1 # failure is the default! + +_cleanup() +{ + _cleanup_test_img + rm -f "${TEST_IMG}.base" + rm -f "${TEST_IMG}.convert" + rm -f "${TEST_IMG}.a" + rm -f "${TEST_IMG}.b" + rm -f "${TEST_IMG}.lnk" +} +trap "_cleanup; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter +. ./common.qemu + +_supported_fmt qcow2 +_supported_proto file +_supported_os Linux + +size=3D32M + +_run_cmd() +{ + echo + (echo "$@"; "$@" 2>&1 1>/dev/null) | _filter_testdir +} + +function _do_run_qemu() +{ + ( + if ! test -t 0; then + while read cmd; do + echo $cmd + done + fi + echo quit + ) | $QEMU -nographic -monitor stdio -serial none "$@" 1>/dev/null +} + +function _run_qemu_with_images() +{ + _do_run_qemu \ + $(for i in $@; do echo "-drive if=3Dnone,file=3D$i"; done) 2>&1 \ + | _filter_testdir | _filter_qemu +} + +test_opts=3D"$(echo readonly=3D{on,off},force-shared-write=3D{on,off})" + +for opts1 in "" $test_opts; do + echo + echo "=3D=3D Creating base image =3D=3D" + TEST_IMG=3D"${TEST_IMG}.base" _make_test_img $size + + echo + echo "=3D=3D Creating test image =3D=3D" + $QEMU_IMG create -f $IMGFMT "${TEST_IMG}" -b ${TEST_IMG}.base | _filte= r_img_create + + echo + echo "=3D=3D Launching QEMU, opts: '$opts1' =3D=3D" + _launch_qemu -drive file=3D"${TEST_IMG}",if=3Dnone,$opts1 + h=3D$QEMU_HANDLE + + for opts2 in "" $test_opts; do + echo + echo "=3D=3D Launching another QEMU, opts: '$opts2' =3D=3D" + echo "quit" | \ + $QEMU -nographic -monitor stdio \ + -drive file=3D"${TEST_IMG}",if=3Dnone,$opts2 2>&1 1>/dev/null = | \ + _filter_testdir | _filter_qemu + done + + for L in "" "-U"; do + + echo + echo "=3D=3D Running utility commands $L =3D=3D" + _run_cmd $QEMU_IO $L -c "read 0 512" "${TEST_IMG}" + _run_cmd $QEMU_IO $L -r -c "read 0 512" "${TEST_IMG}" + _run_cmd $QEMU_IO -c "open $L ${TEST_IMG}" -c "read 0 512" + _run_cmd $QEMU_IO -c "open -r $L ${TEST_IMG}" -c "read 0 512" + _run_cmd $QEMU_IMG info $L "${TEST_IMG}" + _run_cmd $QEMU_IMG check $L "${TEST_IMG}" + _run_cmd $QEMU_IMG compare $L "${TEST_IMG}" "${TEST_IMG}" + _run_cmd $QEMU_IMG map $L "${TEST_IMG}" + _run_cmd $QEMU_IMG amend -o "" $L "${TEST_IMG}" + _run_cmd $QEMU_IMG commit $L "${TEST_IMG}" + _run_cmd $QEMU_IMG resize $L "${TEST_IMG}" $size + _run_cmd $QEMU_IMG rebase $L "${TEST_IMG}" -b "${TEST_IMG}.ba= se" + _run_cmd $QEMU_IMG snapshot -l $L "${TEST_IMG}" + _run_cmd $QEMU_IMG convert $L "${TEST_IMG}" "${TEST_IMG}.conve= rt" + _run_cmd $QEMU_IMG dd $L if=3D"${TEST_IMG}" of=3D"${TEST_= IMG}.convert" bs=3D512 count=3D1 + _run_cmd $QEMU_IMG bench $L -c 1 "${TEST_IMG}" + _run_cmd $QEMU_IMG bench $L -w -c 1 "${TEST_IMG}" + done + _send_qemu_cmd $h "{ 'execute': 'quit', }" "" + echo + echo "Round done" + _cleanup_qemu +done + +for opt1 in $test_opts; do + for opt2 in $test_opts; do + echo + echo "=3D=3D Two devices with the same image ($opt1 - $opt2) =3D= =3D" + _run_qemu_with_images "${TEST_IMG},$opt1" "${TEST_IMG},$opt2" + done +done + +echo "=3D=3D Creating ${TEST_IMG}.[abc] =3D=3D" +( + $QEMU_IMG create -f qcow2 "${TEST_IMG}.a" -b "${TEST_IMG}" + $QEMU_IMG create -f qcow2 "${TEST_IMG}.b" -b "${TEST_IMG}" + $QEMU_IMG create -f qcow2 "${TEST_IMG}.c" -b "${TEST_IMG}.b" +) | _filter_img_create + +echo +echo "=3D=3D Two devices sharing the same file in backing chain =3D=3D" +_run_qemu_with_images "${TEST_IMG}.a" "${TEST_IMG}.b" +_run_qemu_with_images "${TEST_IMG}.a" "${TEST_IMG}.c" + +echo +echo "=3D=3D Backing image also as an active device =3D=3D" +_run_qemu_with_images "${TEST_IMG}.a" "${TEST_IMG}" + +echo +echo "=3D=3D Backing image also as an active device (ro) =3D=3D" +_run_qemu_with_images "${TEST_IMG}.a" "${TEST_IMG},readonly=3Don" + +echo +echo "=3D=3D Symbolic link =3D=3D" +rm -f "${TEST_IMG}.lnk" &>/dev/null +ln -s ${TEST_IMG} "${TEST_IMG}.lnk" || echo "Failed to create link" +_run_qemu_with_images "${TEST_IMG}.lnk" "${TEST_IMG}" + +echo +echo "=3D=3D Closing an image should unlock it =3D=3D" +_launch_qemu + +_send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'qmp_capabilities' }" \ + 'return' + +echo "Adding drive" +_send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'human-monitor-command', + 'arguments': { 'command-line': 'drive_add 0 if=3Dnone,id=3Dd0,file= =3D${TEST_IMG}' } }" \ + "" + +_run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' + +echo "Closing drive" +_send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'human-monitor-command', + 'arguments': { 'command-line': 'drive_del d0' } }" \ + "" + +_run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' + +echo "Adding two and closing one" +for d in d0 d1; do + _send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'human-monitor-command', + 'arguments': { 'command-line': 'drive_add 0 if=3Dnone,id=3D$d,f= ile=3D${TEST_IMG},readonly=3Don' } }" \ + "" +done + +_run_cmd $QEMU_IMG info "${TEST_IMG}" + +_send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'human-monitor-command', + 'arguments': { 'command-line': 'drive_del d0' } }" \ + "" + +_run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' + +echo "Closing the other" +_send_qemu_cmd $QEMU_HANDLE \ + "{ 'execute': 'human-monitor-command', + 'arguments': { 'command-line': 'drive_del d1' } }" \ + "" + +_run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' + +_cleanup_qemu + +# success, all done +echo "*** done" +rm -f $seq.full +status=3D0 diff --git a/tests/qemu-iotests/153.out b/tests/qemu-iotests/153.out new file mode 100644 index 0000000..786ff0b --- /dev/null +++ b/tests/qemu-iotests/153.out @@ -0,0 +1,627 @@ +QA output created by 153 + +=3D=3D Creating base image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=3DIMGFMT size=3D33554432 + +=3D=3D Creating test image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D33554432 backing_file= =3DTEST_DIR/t.IMGFMT.base + +=3D=3D Launching QEMU, opts: '' =3D=3D + +=3D=3D Launching another QEMU, opts: '' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,: Failed to lock image= : Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= n' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= ff' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Don,force-sh= ared-write=3Doff: Failed to lock share byte: Resource temporarily unavailab= le + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= on' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Don: Failed to lock write byte: Resource temporarily unavailab= le + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= off' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Running utility commands =3D=3D + +_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock share byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock share byte: Resource te= mporarily unavailable + +_qemu_img_wrapper info TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper check TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper map TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper amend -o TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper commit TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper dd if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.convert b= s=3D512 count=3D1 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +=3D=3D Running utility commands -U =3D=3D + +_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock write byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock write byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper check -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper commit -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd -U if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.conver= t bs=3D512 count=3D1 + +_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +Round done + +=3D=3D Creating base image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=3DIMGFMT size=3D33554432 + +=3D=3D Creating test image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D33554432 backing_file= =3DTEST_DIR/t.IMGFMT.base + +=3D=3D Launching QEMU, opts: 'readonly=3Don,force-shared-write=3Don' =3D= =3D + +=3D=3D Launching another QEMU, opts: '' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= n' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= ff' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= on' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= off' =3D=3D + +=3D=3D Running utility commands =3D=3D + +_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info TEST_DIR/t.qcow2 + +_qemu_img_wrapper check TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o TEST_DIR/t.qcow2 + +_qemu_img_wrapper commit TEST_DIR/t.qcow2 + +_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M + +_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base + +_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.convert b= s=3D512 count=3D1 + +_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2 + +=3D=3D Running utility commands -U =3D=3D + +_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper check -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper commit -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M + +_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base + +_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd -U if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.conver= t bs=3D512 count=3D1 + +_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2 + +Round done + +=3D=3D Creating base image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=3DIMGFMT size=3D33554432 + +=3D=3D Creating test image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D33554432 backing_file= =3DTEST_DIR/t.IMGFMT.base + +=3D=3D Launching QEMU, opts: 'readonly=3Don,force-shared-write=3Doff' =3D= =3D + +=3D=3D Launching another QEMU, opts: '' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,: Failed to lock image= : Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= n' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= ff' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= on' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Don: Share byte lock is taken: Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= off' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Running utility commands =3D=3D + +_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info TEST_DIR/t.qcow2 + +_qemu_img_wrapper check TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper commit TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.convert b= s=3D512 count=3D1 + +_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +=3D=3D Running utility commands -U =3D=3D + +_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Share byte lock is taken: Resource tem= porarily unavailable + +_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Share byte lock is taken: Resource tem= porarily unavailable + +_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper check -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Share byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper commit -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Share byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Share byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Share byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd -U if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.conver= t bs=3D512 count=3D1 + +_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Share byte lock is taken: Res= ource temporarily unavailable + +Round done + +=3D=3D Creating base image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=3DIMGFMT size=3D33554432 + +=3D=3D Creating test image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D33554432 backing_file= =3DTEST_DIR/t.IMGFMT.base + +=3D=3D Launching QEMU, opts: 'readonly=3Doff,force-shared-write=3Don' =3D= =3D + +=3D=3D Launching another QEMU, opts: '' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,: Failed to lock image= : Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= n' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= ff' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Don,force-sh= ared-write=3Doff: Write byte lock is taken: Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= on' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= off' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Running utility commands =3D=3D + +_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Write byte lock is taken: Resource tem= porarily unavailable + +_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Write byte lock is taken: Resource tem= porarily unavailable + +_qemu_img_wrapper info TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper check TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper map TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper amend -o TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper commit TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper dd if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.convert b= s=3D512 count=3D1 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Write byte lock is taken: Res= ource temporarily unavailable + +_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +=3D=3D Running utility commands -U =3D=3D + +_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper check -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper commit -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M + +_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base + +_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd -U if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.conver= t bs=3D512 count=3D1 + +_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2 + +Round done + +=3D=3D Creating base image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=3DIMGFMT size=3D33554432 + +=3D=3D Creating test image =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D33554432 backing_file= =3DTEST_DIR/t.IMGFMT.base + +=3D=3D Launching QEMU, opts: 'readonly=3Doff,force-shared-write=3Doff' =3D= =3D + +=3D=3D Launching another QEMU, opts: '' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,: Failed to lock image= : Resource temporarily unavailable + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= n' =3D=3D + +=3D=3D Launching another QEMU, opts: 'readonly=3Don,force-shared-write=3Do= ff' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Don,force-sh= ared-write=3Doff: Failed to lock share byte: Resource temporarily unavailab= le + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= on' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Don: Failed to lock write byte: Resource temporarily unavailab= le + +=3D=3D Launching another QEMU, opts: 'readonly=3Doff,force-shared-write=3D= off' =3D=3D +QEMU_PROG: -drive file=3DTEST_DIR/t.qcow2,if=3Dnone,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Running utility commands =3D=3D + +_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock share byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable + +_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock share byte: Resource te= mporarily unavailable + +_qemu_img_wrapper info TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper check TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper map TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper amend -o TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper commit TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper dd if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.convert b= s=3D512 count=3D1 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock share byte: Re= source temporarily unavailable + +_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock image: Resourc= e temporarily unavailable + +=3D=3D Running utility commands -U =3D=3D + +_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2 +can't open device TEST_DIR/t.qcow2: Failed to lock write byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2 + +_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock write byte: Resource te= mporarily unavailable + +_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512 + +_qemu_img_wrapper info -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper check -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2 + +_qemu_img_wrapper map -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper commit -U TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2 + +_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert + +_qemu_img_wrapper dd -U if=3DTEST_DIR/t.qcow2 of=3DTEST_DIR/t.qcow2.conver= t bs=3D512 count=3D1 + +_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2 + +_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2 +qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to lock write byte: Re= source temporarily unavailable + +Round done + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Don - readonly=3Don,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Don - readonly=3Don,force-shared-write=3Doff) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Don - readonly=3Doff,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Don - readonly=3Doff,force-shared-write=3Doff) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Doff - readonly=3Don,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Doff - readonly=3Don,force-shared-write=3Doff) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Doff - readonly=3Doff,force-shared-write=3Don) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Doff,force-s= hared-write=3Don: Share byte lock is taken: Resource temporarily unavailable + +=3D=3D Two devices with the same image (readonly=3Don,force-shared-write= =3Doff - readonly=3Doff,force-shared-write=3Doff) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Don - readonly=3Don,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Don - readonly=3Don,force-shared-write=3Doff) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Don,force-sh= ared-write=3Doff: Write byte lock is taken: Resource temporarily unavailable + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Don - readonly=3Doff,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Don - readonly=3Doff,force-shared-write=3Doff) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Doff - readonly=3Don,force-shared-write=3Don) =3D=3D + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Doff - readonly=3Don,force-shared-write=3Doff) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Don,force-sh= ared-write=3Doff: Failed to lock share byte: Resource temporarily unavailab= le + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Doff - readonly=3Doff,force-shared-write=3Don) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Doff,force-s= hared-write=3Don: Failed to lock write byte: Resource temporarily unavailab= le + +=3D=3D Two devices with the same image (readonly=3Doff,force-shared-write= =3Doff - readonly=3Doff,force-shared-write=3Doff) =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2,readonly=3Doff,force-s= hared-write=3Doff: Failed to lock image: Resource temporarily unavailable +=3D=3D Creating /var/tmp/q/build/tests/qemu-iotests/scratch/t.qcow2.[abc] = =3D=3D +Formatting 'TEST_DIR/t.IMGFMT.a', fmt=3DIMGFMT size=3D33554432 backing_fil= e=3DTEST_DIR/t.IMGFMT +Formatting 'TEST_DIR/t.IMGFMT.b', fmt=3DIMGFMT size=3D33554432 backing_fil= e=3DTEST_DIR/t.IMGFMT +Formatting 'TEST_DIR/t.IMGFMT.c', fmt=3DIMGFMT size=3D33554432 backing_fil= e=3DTEST_DIR/t.IMGFMT.b + +=3D=3D Two devices sharing the same file in backing chain =3D=3D + +=3D=3D Backing image also as an active device =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2: Failed to lock image:= Resource temporarily unavailable + +=3D=3D Backing image also as an active device (ro) =3D=3D + +=3D=3D Symbolic link =3D=3D +QEMU_PROG: -drive if=3Dnone,file=3DTEST_DIR/t.qcow2: Failed to lock image:= Resource temporarily unavailable + +=3D=3D Closing an image should unlock it =3D=3D +{"return": {}} +Adding drive + +_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable +Closing drive + +_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 +Adding two and closing one + +_qemu_img_wrapper info TEST_DIR/t.qcow2 + +_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 +can't open device TEST_DIR/t.qcow2: Failed to lock image: Resource tempora= rily unavailable +Closing the other + +_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 +*** done diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group index 893962d..c8ae60e 100644 --- a/tests/qemu-iotests/group +++ b/tests/qemu-iotests/group @@ -154,6 +154,7 @@ 149 rw auto sudo 150 rw auto quick 152 rw auto quick +153 rw auto quick 154 rw auto backing quick 155 rw auto 156 rw auto quick --=20 2.9.3