예제 #1
0
 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))
예제 #2
0
 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))
예제 #3
0
    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
예제 #4
0
    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