]> xenbits.xensource.com Git - libvirt.git/commit
virFDStream: Add option for delete file after it's opening
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Apr 2011 10:27:35 +0000 (12:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 May 2011 10:44:49 +0000 (12:44 +0200)
commit6a1f5f568f8bc9da50d6c03df25537cf1dd08f7b
treea60325555833785dcd98d5af0608e240660ec6dd
parent2c6efac9855ed3fa38833d0a0dda2f5005c7e5ab
virFDStream: Add option for delete file after it's opening

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_driver.c,
  src/storage/storage_driver.c, src/uml/uml_driver.c,
  src/xen/xen_driver.c: Expand existing function calls
src/fdstream.c
src/fdstream.h
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/storage/storage_driver.c
src/uml/uml_driver.c
src/util/iohelper.c
src/xen/xen_driver.c