Received: from eggs.gnu.org ([2001:4830:134:3::10]:51803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Z4W-0001a3-5U for qemu-devel@nongnu.org; Wed, 25 May 2016 09:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5Z4R-0007Eo-8C for qemu-devel@nongnu.org; Wed, 25 May 2016 09:42:04 -0400 References: <1463470536-8981-1-git-send-email-famz@redhat.com> <1463470536-8981-24-git-send-email-famz@redhat.com> From: Max Reitz Message-ID: <9f50148b-c215-eeb0-1120-cd151359d2cb@redhat.com> Date: Wed, 25 May 2016 15:41:42 +0200 MIME-Version: 1.0 In-Reply-To: <1463470536-8981-24-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nHNUhWtJsCUBgkiHSpHdfXF86N1F4BDEJ" Subject: Re: [Qemu-devel] [PATCH v5 23/27] iotests: 087: Disable image lock in cases where file is shared List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , Jeff Cody , Markus Armbruster , Eric Blake , John Snow , qemu-block@nongnu.org, berrange@redhat.com, pbonzini@redhat.com, den@openvz.org, stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nHNUhWtJsCUBgkiHSpHdfXF86N1F4BDEJ From: Max Reitz To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , Jeff Cody , Markus Armbruster , Eric Blake , John Snow , qemu-block@nongnu.org, berrange@redhat.com, pbonzini@redhat.com, den@openvz.org, stefanha@redhat.com Message-ID: <9f50148b-c215-eeb0-1120-cd151359d2cb@redhat.com> Subject: Re: [PATCH v5 23/27] iotests: 087: Disable image lock in cases where file is shared References: <1463470536-8981-1-git-send-email-famz@redhat.com> <1463470536-8981-24-git-send-email-famz@redhat.com> In-Reply-To: <1463470536-8981-24-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 17.05.2016 09:35, Fam Zheng wrote: > Otherwise the error handling we are expceting will be masked by the *expecting > preceding image locking check, and is going to be indistinguishable > because the error messages are all the same. >=20 > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/087 | 6 ++++++ > 1 file changed, 6 insertions(+) With the spelling error fixed: Reviewed-by: Max Reitz But maybe it would be easier to just make these test cases use null-co instead of a $IMGFMT file. >=20 > diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087 > index e7bca37..60bdec5 100755 > --- a/tests/qemu-iotests/087 > +++ b/tests/qemu-iotests/087 > @@ -84,6 +84,7 @@ run_qemu < "options": { > "driver": "$IMGFMT", > "id": "disk", > + "lock-mode": "off", > "node-name": "test-node", And maybe you want to move the lock-mode below the node-name here, because that's where you put it everywhere else in this patch. Max > "file": { > "driver": "file", > @@ -97,6 +98,7 @@ run_qemu < "options": { > "driver": "$IMGFMT", > "id": "disk", > + "lock-mode": "off", > "file": { > "driver": "file", > "filename": "$TEST_IMG" > @@ -109,6 +111,7 @@ run_qemu < "options": { > "driver": "$IMGFMT", > "id": "test-node", > + "lock-mode": "off", > "file": { > "driver": "file", > "filename": "$TEST_IMG" > @@ -122,6 +125,7 @@ run_qemu < "driver": "$IMGFMT", > "id": "disk2", > "node-name": "disk", > + "lock-mode": "off", > "file": { > "driver": "file", > "filename": "$TEST_IMG" > @@ -135,6 +139,7 @@ run_qemu < "driver": "$IMGFMT", > "id": "disk2", > "node-name": "test-node", > + "lock-mode": "off", > "file": { > "driver": "file", > "filename": "$TEST_IMG" > @@ -148,6 +153,7 @@ run_qemu < "driver": "$IMGFMT", > "id": "disk3", > "node-name": "disk3", > + "lock-mode": "off", > "file": { > "driver": "file", > "filename": "$TEST_IMG" >=20 --nHNUhWtJsCUBgkiHSpHdfXF86N1F4BDEJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXRauXAAoJEDuxQgLoOKytgrIH+gN9gWiIkXieNpVsFWQ9mVWk +7qYD8S7Zv4gBA0VegOIngQ/LYMX08d7H7n2My3HXWPUi9nPPGQxUd3vJk3E7TTg ctEe74+B0ascuq3dfe2Ic05+QWm77uM04QFiZjErQvUZtt2KSHPQioEjorCCynG8 ngEexXR2bu/pkAClJzQkxlhN3DgLvR1WkZykg0Ycvl/2rD/aDSb0Lr47TWTyoPAY Rbx2GomoSQ9D2WCdUhwa7Ko/bFeOFV5sSlNfYmRbJgY5jeKNDONBCvnWmZN6kU0S EMk77rgQ/jQyfnZ9QcTX8jbbByBVNYtdI5lnb+KzzleAE5EL0ND7lLp0BHEoKZI= =Q3Fv -----END PGP SIGNATURE----- --nHNUhWtJsCUBgkiHSpHdfXF86N1F4BDEJ--