---
name: "gfs_pio_datasync"
section: "3"
platform: "linux"
package: "libgfarm-dev"
version: "2.7.20+dfsg-1.2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs_pio_datasync"
---

# gfs\_pio\_datasync(3)

output a file's data on memroy to disk

## NAME

gfs\_pio\_datasync - output a file's data on memroy to disk

## SYNOPSIS

```
#include <gfarm/gfarm.h>
```

**gfarm\_error\_t gfs\_pio\_datasync(GFS\_File** *gf***);**

## DESCRIPTION

The function **gfs\_pio\_datasync** flushes data on memory of the *gf*, and waits for the I/O to complete before returning. It does not update metadtata stat information, while another function **gfs\_pio\_sync** updates the metadata in addition to the contents.

## RETURN VALUES

**GFARM\_ERR\_NO\_ERROR**

The function terminated successfully.

**GFARM\_ERR\_NO\_MEMORY**

Insufficient memory was available.

Others

An error except the above occurred. The reason is shown by **gfarm\_error\_string**(3).

## SEE ALSO

[**gfs\_pio\_sync**(3)](/gfs_pio_sync/3.md), [**gfs\_pio\_create**(3)](/gfs_pio_create/3.md), [**gfs\_pio\_open**(3)](/gfs_pio_open/3.md), [**gfs\_pio\_write**(3)](/gfs_pio_write/3.md), [**gfs\_pio\_flush**(3)](/gfs_pio_flush/3.md)
