Received: from eggs.gnu.org ([2001:4830:134:3::10]:52681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azpnv-0004tD-W0 for qemu-devel@nongnu.org; Mon, 09 May 2016 14:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azpnt-0004EV-VV for qemu-devel@nongnu.org; Mon, 09 May 2016 14:21:14 -0400 References: <1462677405-4752-1-git-send-email-eblake@redhat.com> <1462677405-4752-6-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: <07a7b1e8-ecdb-2cec-4ac7-dc196de22ae1@redhat.com> Date: Mon, 9 May 2016 20:21:04 +0200 MIME-Version: 1.0 In-Reply-To: <1462677405-4752-6-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SNH1q8fmr9hXieuENJOiAfPw4wNRDAIKp" Subject: Re: [Qemu-devel] [PATCH v5 5/6] qemu-io: Add 'write -f' to test FUA flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@nongnu.org, Kevin Wolf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SNH1q8fmr9hXieuENJOiAfPw4wNRDAIKp From: Max Reitz To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@nongnu.org, Kevin Wolf Message-ID: <07a7b1e8-ecdb-2cec-4ac7-dc196de22ae1@redhat.com> Subject: Re: [PATCH v5 5/6] qemu-io: Add 'write -f' to test FUA flag References: <1462677405-4752-1-git-send-email-eblake@redhat.com> <1462677405-4752-6-git-send-email-eblake@redhat.com> In-Reply-To: <1462677405-4752-6-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 08.05.2016 05:16, Eric Blake wrote: > Make it easier to test block drivers with BDRV_REQ_FUA in > .supported_write_flags, by adding the '-f' flag to qemu-io to > conditionally pass the flag through to specific writes ('write', > 'write -z', 'writev', 'aio_write', 'aio_write -z'). You'll want > to use 'qemu-io -t none' to actually make -f useful (as > otherwise, the default writethrough mode automatically sets the > FUA bit on every write). >=20 > Signed-off-by: Eric Blake >=20 > --- > v5: use bool operator > --- > qemu-io-cmds.c | 57 +++++++++++++++++++++++++++++++++++++++++---------= ------- > 1 file changed, 41 insertions(+), 16 deletions(-) Reviewed-by: Max Reitz --SNH1q8fmr9hXieuENJOiAfPw4wNRDAIKp 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 iQEcBAEBCAAGBQJXMNUQAAoJEDuxQgLoOKytlVoH/2sm14QINkvf19108x3sM1sj fCInh0MygT/zbPb09nQ6iC9XbMKdCs+/K+QHnmV14S54Lg8e8ClfZZaIZPFQlPbB bk/SoY334ZurndhFG8rPSMRgPE8LpSGU5hXLnLoFJQH2tQaRE/LSBIectWSZtQ8d E9RAqC6HoNVGayIXRJe3ZafygiJYFl1TYibBJmbZL/G9/vXMj6Iy9Rafg1JMLhar jT1ky/eVz6Q8PDfwtedN9TN1hQrdnK7KGGZRtJ/bv8PeCI0KLOnv8IszCxbyyZUC 8ZbltcVi7Vp2/0gfPSqL5kL80YwaNHc9hwTU8Z4urRBKwB+YXMa/ncC1Tg+FQOY= =qlZb -----END PGP SIGNATURE----- --SNH1q8fmr9hXieuENJOiAfPw4wNRDAIKp--