iohelper: fdatasync() at the end
iohelper: fdatasync() at the end

Currently, when we are doing (managed) save, we insert the
iohelper between the qemu and OS. The pipe is created, the
writing end is passed to qemu and the reading end to the
iohelper. It reads data and write them into given file. However,
with write() being asynchronous data may still be in OS
caches and hence in some (corner) cases, all migration data
may have been read and written (not physically though). So
qemu will report success, as well as iohelper. However, with
some non local filesystems, where ENOSPACE is polled every X
time units, we may get into situation where all operations
succeeded but data hasn't reached the disk. And in fact will
never do. Therefore we ought sync caches to make sure data
has reached the block device on remote host.

siboulet/libvirt-openvz,crobinso/libvirt,trainstack/libvirt,crobinso/libvirt,VenkatDatta/libvirt,eskultety/libvirt,jeckersb/libvirt,andreabolognani/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,bjzhang/libvirt,trainstack/libvirt,jeckersb/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,crobinso/libvirt,zippy2/libvirt,eskultety/libvirt,emaste/libvirt,zippy2/libvirt,taget/libvirt,jardasgit/libvirt,olafhering/libvirt,taget/libvirt,agx/libvirt,nertpinx/libvirt,iam-TJ/libvirt,emaste/libvirt,jardasgit/libvirt,taget/libvirt,cbosdo/libvirt,libvirt/libvirt,jardasgit/libvirt,jeckersb/libvirt,zippy2/libvirt,datto/libvirt,andreabolognani/libvirt,trainstack/libvirt,nertpinx/libvirt,nertpinx/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,olafhering/libvirt,jeckersb/libvirt,crobinso/libvirt,olafhering/libvirt,agx/libvirt,shugaoye/libvirt,iam-TJ/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,olafhering/libvirt,siboulet/libvirt-openvz,libvirt/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,jeckersb/libvirt,eskultety/libvirt,datto/libvirt,trainstack/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,taget/libvirt,andreabolognani/libvirt,trainstack/libvirt,elmarco/libvirt,iam-TJ/libvirt,emaste/libvirt,iam-TJ/libvirt,bjzhang/libvirt,siboulet/libvirt-openvz,rlaager/libvirt,shugaoye/libvirt,elmarco/libvirt,nertpinx/libvirt,elmarco/libvirt,libvirt/libvirt,rlaager/libvirt,trainstack/libvirt,agx/libvirt,bjzhang/libvirt,andreabolognani/libvirt,iam-TJ/libvirt,jfehlig/libvirt,elmarco/libvirt,jardasgit/libvirt,jfehlig/libvirt,emaste/libvirt,nertpinx/libvirt,rlaager/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,bjzhang/libvirt,emaste/libvirt,iam-TJ/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,fabianfreyer/libvirt,taget/libvirt,rlaager/libvirt,datto/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,emaste/libvirt,eskultety/libvirt,cbosdo/libvirt,datto/libvirt,agx/libvirt,rlaager/libvirt,iam-TJ/libvirt,emaste/libvirt,jfehlig/libvirt,libvirt/libvirt,eskultety/libvirt,zippy2/libvirt,zhlcindy/libvirt-1.1.4-maintain,jeckersb/libvirt,agx/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,bjzhang/libvirt,cbosdo/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,jeckersb/libvirt