From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRQzX-0001QF-Dt for qemu-devel@nongnu.org; Thu, 04 Feb 2016 15:59:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRQzW-0008WC-GG for qemu-devel@nongnu.org; Thu, 04 Feb 2016 15:59:03 -0500 References: <1CF37786-9AAA-4E5E-B571-DE20E7A463EB@gmail.com> <20160202171606.GM18461@redhat.com> <72A30A67-5846-4835-B8D2-B7F545F76C0B@gmail.com> <20160202173111.GN18461@redhat.com> <70C3852E-1807-419B-9205-F24B5409EABF@gmail.com> <56B10282.1030609@redhat.com> <54A3ED84-6284-48A5-AF16-3B2BE27917C6@gmail.com> <56B12802.8010208@redhat.com> <56B1663C.5040600@redhat.com> <56B183BC.8080107@redhat.com> From: Eric Blake Message-ID: <56B3BB8F.4000407@redhat.com> Date: Thu, 4 Feb 2016 13:58:55 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1nRpFvshnsRPNbG2xxwbwtEeFN5uscA8B" Subject: Re: [Qemu-devel] ping: [PATCH v13] block/raw-posix.c: Make physical devices usable in QEMU under Mac OS X host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid Cc: Kevin Wolf , qemu-devel qemu-devel , Qemu-block This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1nRpFvshnsRPNbG2xxwbwtEeFN5uscA8B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/03/2016 08:54 AM, Programmingkid wrote: >> Oops, I shouldn't be writing emails late at night. Let's try this aga= in. >=20 > So you want this: >=20 > #if defined(__APPLE__) && defined(__MACH__) > if (*bsd_path) { > filename =3D bsd_path; > } > /* if a physical device experienced an error while being opened= */ > if (strncmp(filename, "/dev/", 5) =3D=3D 0) { > print_unmounting_directions(filename); > return -1; > } > #endif /* defined(__APPLE__) && defined(__MACH__) */ Yes, that should work. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --1nRpFvshnsRPNbG2xxwbwtEeFN5uscA8B 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWs7uPAAoJEKeha0olJ0NqC08H/jvdqy2iiaLHRdi/pbX42+1J bQGf9PjvwmvMnYE1sJwjV0ogh34Nge59vhkoKMQQG4IKk6nhuVN7mPvnlJimEj71 O+8rbGhcH1vRM1mmWhj3h524J6g85OHegQJ8IDzb0jj2UzfCbfQBEjFrH+yqLDNB UyMY/0QBA8BBVxTOp3U65/7/O6a+o3/qU2O144XbJDOF88oVKsBYDONii63RFS+n 5IEPAu2Hdh9OiouCW6iDrjEYI8qZM79m0UdaJgePXIeOgPj3CxOjiyijYIU0e1pm oXynk826aGhijAQMNVFBlQwMpuHwyTnhH6Us/Z9+w1w04CCxbkK9mA3wXzaQVeQ= =qYaf -----END PGP SIGNATURE----- --1nRpFvshnsRPNbG2xxwbwtEeFN5uscA8B--