Re: [Qemu-devel] [PATCH 06/10] block: Enable qemu_open/close to work with fd sets

2012-08-15 Thread Peter Maydell
On 15 August 2012 14:56, Kevin Wolf wrote: > From: Corey Bryant > +/* Set/unset flags that we can with fcntl */ > +setfl_flags = O_APPEND | O_ASYNC | O_DIRECT | O_NOATIME | O_NONBLOCK; > +dup_flags &= ~setfl_flags; > +dup_flags |= (flags & setfl_flags); > +if (fcntl(ret, F_SET

[Qemu-devel] [PATCH 06/10] block: Enable qemu_open/close to work with fd sets

2012-08-15 Thread Kevin Wolf
From: Corey Bryant When qemu_open is passed a filename of the "/dev/fdset/nnn" format (where nnn is the fdset ID), an fd with matching access mode flags will be searched for within the specified monitor fd set. If the fd is found, a dup of the fd will be returned from qemu_open. Signed-off-by: