next up previous contents index
Next: 7.4.2 datasync: Write this Up: 7.4 oskit_file: File Interface Previous: 7.4 oskit_file: File Interface

7.4.1 sync: Write this file's data and metadata to permanent storage

 

SYNOPSIS

#include <oskit/fs/file.h>

oskit_error_t oskit_file_sync(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 and metadata with the on-disk copy. 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