LLAPI_FSYNC(3)

NAME
llapi_fsync - flush dirty pages from all Lustre clients

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_fsync(int fd);

DESCRIPTION
llapi_fsync() flushes dirty pages from all of the clients for a given file descriptor.

fd  file descriptor

RETURN VALUES
llapi_fsync() returns:

0   on success

<0  a negative errno value on failure

EXAMPLES
Flush a file's data across all clients after a parallel IO operation:
            int fd;
            int rc;

            /* write file concurrently from many clients */
            rc = llapi_fsync(fd);
            if (rc == 0)
                    /* success, all client data persistent for this file */
            else
                    /* error, some problem was seen during data flush */

AVAILABILITY
The llapi_fsync API is part of the lustre(7) user application interface library since release 2.16.0.

SEE ALSO
llapi_get_data_version(3), lustre(7), lustreapi(7)