On 25-10-2012 02:45:41 -0700, Zac Medico wrote: > > can't you use os.fdatasync() or os.fsync() instead? > > os.fdatasync() or os.fsync() only work for single files, right? We don't > want to sync them individually, since that wastes disk bandwidth. It's > much more efficient to sync the whole filesystem at once, like syncfs does. You use syncfs, which according to the man-page requires a filedescriptor. Hence my suggestion. -- Fabian Groffen Gentoo on a different level