next up previous contents index
Next: 7.4.3 access: Check accessibility Up: 7.4 oskit_file: File Interface Previous: 7.4.1 sync: Write this

7.4.2 datasync: Write this file's data to permanent storage

 

SYNOPSIS

#include <oskit/fs/file.h>

oskit_error_t oskit_file_datasync(oskit_file_t *f, oskit_bool_t wait);

DIRECTION

client OS tex2html_wrap_inline32841 filesystem library

DESCRIPTION

This method synchronizes the in-core copy of this file's data with the on-disk copy. The file metadata need not be sychronized by this method. If wait is TRUE, then the call does not return until all pending data has been completely written.

PARAMETERS

f
The file to sync.
wait
TRUE if the call should wait for completion.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group