Re: [libvirt] [PATCH 1/5] Enhance the streams helper to support plain file I/O

2011-03-18 Thread Daniel P. Berrange
On Tue, Mar 15, 2011 at 09:53:40AM -0600, Eric Blake wrote: > On 03/15/2011 06:30 AM, Daniel P. Berrange wrote: > > The O_NONBLOCK flag doesn't work as desired on plain files > > or block devices. Introduce an I/O helper program that does > > the blocking I/O operations, communicating over a pipe t

Re: [libvirt] [PATCH 1/5] Enhance the streams helper to support plain file I/O

2011-03-15 Thread Eric Blake
On 03/15/2011 06:30 AM, Daniel P. Berrange wrote: > +if (offset && > +lseek(fd, offset, SEEK_SET) != offset) { > +virReportSystemError(errno, > + _("Unable to seek %s to %llu"), > + path, off

Re: [libvirt] [PATCH 1/5] Enhance the streams helper to support plain file I/O

2011-03-15 Thread Eric Blake
On 03/15/2011 06:30 AM, Daniel P. Berrange wrote: > The O_NONBLOCK flag doesn't work as desired on plain files > or block devices. Introduce an I/O helper program that does > the blocking I/O operations, communicating over a pipe that > can support O_NONBLOCK > > * src/fdstream.c, src/fdstream.h:

[libvirt] [PATCH 1/5] Enhance the streams helper to support plain file I/O

2011-03-15 Thread Daniel P. Berrange
The O_NONBLOCK flag doesn't work as desired on plain files or block devices. Introduce an I/O helper program that does the blocking I/O operations, communicating over a pipe that can support O_NONBLOCK * src/fdstream.c, src/fdstream.h: Add non-blocking I/O on plain files/block devices * src/Make

[libvirt] [PATCH 1/5] Enhance the streams helper to support plain file I/O

2011-02-22 Thread Daniel P. Berrange
The O_NONBLOCK flag doesn't work as desired on plain files or block devices. Introduce an I/O helper program that does the blocking I/O operations, communicating over a pipe that can support O_NONBLOCK * src/fdstream.c, src/fdstream.h: Add non-blocking I/O on plain files/block devices * src/Make