Re: [libvirt] [PATCH v4 6/8] virFDStream: Add option for delete file after it's opening

2011-05-13 Thread Eric Blake
On 05/13/2011 03:18 AM, Daniel P. Berrange wrote: > On Thu, May 12, 2011 at 06:29:13PM +0200, Michal Privoznik wrote: >> This is needed if we want to transfer a temporary file. If the >> transfer is done with iohelper, we might run into a race condition, >> where we unlink() file before iohelper is

Re: [libvirt] [PATCH v4 6/8] virFDStream: Add option for delete file after it's opening

2011-05-13 Thread Daniel P. Berrange
On Thu, May 12, 2011 at 06:29:13PM +0200, Michal Privoznik wrote: > This is needed if we want to transfer a temporary file. If the > transfer is done with iohelper, we might run into a race condition, > where we unlink() file before iohelper is executed. > > * src/fdstream.c, src/fdstream.h, > s

[libvirt] [PATCH v4 6/8] virFDStream: Add option for delete file after it's opening

2011-05-12 Thread Michal Privoznik
This is needed if we want to transfer a temporary file. If the transfer is done with iohelper, we might run into a race condition, where we unlink() file before iohelper is executed. * src/fdstream.c, src/fdstream.h, src/util/iohelper.c: Add new option * src/lxc/lxc_driver.c, src/qemu/qemu_drive