def fdatasync(self): """ Flush buffer cache pages pertaining to data, but not the ones pertaining to metadata. """ ret = api.glfs_fdatasync(self.fd) if ret < 0: err = ctypes.get_errno() raise OSError(err, os.strerror(err))
def fdatasync(self): """ Force write of file :returns: 0 if success, raises OSError if it fails """ ret = api.glfs_fdatasync(self.fd) if ret < 0: err = ctypes.get_errno() raise OSError(err, os.strerror(err)) return ret