Re: [libvirt] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-15 Thread Corey Bryant
On 06/15/2012 11:21 AM, Eric Blake wrote: On 06/14/2012 09:55 AM, Corey Bryant wrote: This patch converts all block layer open calls to qemu_open. This enables all block layer open paths to dup(X) a pre-opened file descriptor if the filename is of the format /dev/fd/X. This is useful if QEMU

Re: [libvirt] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-15 Thread Eric Blake
On 06/14/2012 09:55 AM, Corey Bryant wrote: > This patch converts all block layer open calls to qemu_open. This > enables all block layer open paths to dup(X) a pre-opened file > descriptor if the filename is of the format /dev/fd/X. This is > useful if QEMU is restricted from opening certain fil

Re: [libvirt] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-15 Thread Corey Bryant
On 06/15/2012 10:36 AM, Luiz Capitulino wrote: On Thu, 14 Jun 2012 11:55:04 -0400 Corey Bryant wrote: This patch converts all block layer open calls to qemu_open. This enables all block layer open paths to dup(X) a pre-opened file descriptor if the filename is of the format /dev/fd/X. This

Re: [libvirt] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-15 Thread Luiz Capitulino
On Thu, 14 Jun 2012 11:55:04 -0400 Corey Bryant wrote: > This patch converts all block layer open calls to qemu_open. This > enables all block layer open paths to dup(X) a pre-opened file > descriptor if the filename is of the format /dev/fd/X. This is > useful if QEMU is restricted from openin

[libvirt] [PATCH v3 4/5] block: Convert open calls to qemu_open

2012-06-14 Thread Corey Bryant
This patch converts all block layer open calls to qemu_open. This enables all block layer open paths to dup(X) a pre-opened file descriptor if the filename is of the format /dev/fd/X. This is useful if QEMU is restricted from opening certain files. Note that this adds the O_CLOEXEC flag to the c