|
NAMEVOP_FDATASYNC , VOP_FSYNC
—
flush file system buffers for a file
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
int
int
DESCRIPTIONVOP_FSYNC () ensures that a file can be recovered to its
current state following a crash. That typically requires flushing the file's
dirty buffers, its inode, and possibly other filesystem metadata to persistent
media. VOP_FSYNC () is used to implement the
sync(2) and
fsync(2)
system calls.
Its arguments are:
LOCKSThe vnode should be exclusively locked on entry, and stays locked on return.RETURN VALUESZero is returned if the call is successful, otherwise an appropriate error code is returned.ERRORSSEE ALSOvnode(9)AUTHORSThis manual page was written by Doug Rabson.
Visit the GSP FreeBSD Man Page Interface. |