Received: from eggs.gnu.org ([2001:4830:134:3::10]:50646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCRQL-0000Mb-MF for qemu-devel@nongnu.org; Tue, 07 Jul 2015 07:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCRQI-0006Ow-Vq for qemu-devel@nongnu.org; Tue, 07 Jul 2015 07:52:29 -0400 Date: Tue, 7 Jul 2015 12:52:22 +0100 From: Stefan Hajnoczi Message-ID: <20150707115222.GB2405@stefanha-thinkpad.redhat.com> References: <1435761614-31358-1-git-send-email-rjones@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <1435761614-31358-1-git-send-email-rjones@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] block/raw-posix: Don't think /dev/fd/ is a floppy drive. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: kwolf@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org, armbru@redhat.com --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 01, 2015 at 03:40:14PM +0100, Richard W.M. Jones wrote: > In libguestfs we use /dev/fd/ to pass pre-opened file descriptors > to qemu-img. Lately I've discovered that although this works, qemu > believes that these are floppy disk images. That in itself isn't much > of a problem, but now qemu prints a warning about host floppy > pass-thru being deprecated. >=20 > Extend the existing test so that it ignores /dev/fd/ as well as > /dev/fdset/ >=20 > A simple test of this, if you are using the bash shell, is: >=20 > qemu-img info <( cat /dev/null ) >=20 > without this patch: >=20 > $ qemu-img info <( cat /dev/null ) > qemu-img: Host floppy pass-through is deprecated > Support for it will be removed in a future release. > qemu-img: Could not open '/dev/fd/63': Could not refresh total sector c= ount: Illegal seek >=20 > with this patch: >=20 > $ qemu-img info <( cat /dev/null ) > qemu-img: Could not open '/dev/fd/63': Could not refresh total sector c= ount: Illegal seek >=20 > Signed-off-by: Richard W.M. Jones > Fixes: https://bugs.launchpad.net/qemu/+bug/1470536 > --- > block/raw-posix.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVm712AAoJEJykq7OBq3PIsqEH/2EKniNN7QjnsqvKXJcfRA2G T3fGYRho0euIPW0iKI7Bub7QZP8Cb6HRpj3kfi4x7m9BYMM1CUev2gfFfkUhxrvG FpnOyqDfB7ndndU5p4QreqSQWlFpAf1g/JX+pJhgpQQFxUDK5KfmZw36yBkQ+jdq sm1VSMFW36CH0/4d18OWX9klY1GwGHHv5uhi2JR2w3/f8ddsAUAoD/Qajggy5d3O S9VPi/4hBxGyl5SodCe9lBqghPbTKQUCwd0rB4KsX7LFD7JPdtMoJqJouv/F08z7 5MkZK5sOBVsN4u5AJAtZpDfWcy9jVkECNqr2U3jtBZvMaGoKsErkVntWGGHAlWc= =zZxl -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--