def fdatasync(fd):
    """
    Sync modified file data to disk.

    :param fd: file descriptor
    """
    try:
        os.fdatasync(fd)
    except __HOLE__:
        fsync(fd)
dataset/ETHPy150Open openstack/swift/swift/common/utils.py/fdatasync