From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWnnj-00077a-SX for qemu-devel@nongnu.org; Tue, 22 May 2012 08:03:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWnnh-0005lD-TL for qemu-devel@nongnu.org; Tue, 22 May 2012 08:02:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWnnh-0005ku-L8 for qemu-devel@nongnu.org; Tue, 22 May 2012 08:02:53 -0400 Message-ID: <4FBB805D.4040601@redhat.com> Date: Tue, 22 May 2012 06:02:37 -0600 From: Eric Blake MIME-Version: 1.0 References: <1337631598-30639-1-git-send-email-coreyb@linux.vnet.ibm.com> <4FBB4BCE.5080905@redhat.com> In-Reply-To: <4FBB4BCE.5080905@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigE7EB20929EBCFEBA64B242F7" Subject: Re: [Qemu-devel] [RFC PATCH 0/4] block: file descriptor passing using -filefd and getfd_file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: libvir-list@redhat.com, aliguori@us.ibm.com, Corey Bryant , qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE7EB20929EBCFEBA64B242F7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 05/22/2012 02:18 AM, Kevin Wolf wrote: >> This patch series adds the -filefd command-line option and the >> getfd_file monitor command. This will enable libvirt to open a >> file and push the corresponding filename and file descriptor to >> QEMU. When QEMU needs to "open" a file, it will first check if the >> file descriptor was passed by either of these methods before >> attempting to actually open the file. >=20 > I thought we decided to avoid making some file names magic, and instead= > go for the obvious /dev/fd/42? This doesn't make "some file names magic", it makes "all file names magic". In other words, _every_ call to open() first checks the database for an existing fd for the same file name. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigE7EB20929EBCFEBA64B242F7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPu4BdAAoJEKeha0olJ0NqTTgH/RwAR3JT8ZYvhyl5fPq8MKgf DFdCzoJmvG1wl+og1Z+B8wRPCdV+GD/g0n2QBNPXwQpNBcq9pBiUkbm9vRZ1YwUz 6lwnw1tF1NkKph7A8dEYiBleenQQBnhPyNLyQDBL+pFMKbk1URKGER7i86towzSc aLrsxXBTcjFFVTVkaAtmrhOfxBR1adbimcRLRVLKg9xoFtPmDj/cKDCpJ55l9jVm hP4Q4ljbllM6lnq6EGHPNRxh111teexPk4QVHLty1cV1jRLNuAKN+JxqB3W+N5Mc RAAXBm0UZ3XQJaDJUx6Kk1+5LhezdI9QXjYmf7+jqRQKhtVMG9fH/kn8Hv82MvU= =/A7t -----END PGP SIGNATURE----- --------------enigE7EB20929EBCFEBA64B242F7--