vfs_sync Entry Point

Purpose

Requests that file system changes be written to permanent storage.

Syntax

int vfs_sync (* gfsp)
struct gfs *gfsp;

Parameter

Item Description
gfsp Points to a gfs structure. The gfs structure describes the file system type. This structure is defined in the /usr/include/sys/gfs.h file.

Description

The vfs_sync entry point is used by the logical file system to force all data associated with a particular virtual file system type to be written to its storage. This entry point is used to establish a known consistent state of the data.

Note: The vfs_sync entry point is called once per file system type rather than once per virtual file system.

Execution Environment

The vfs_sync entry point can be called from the process environment only.

Return Values

The vfs_sync entry point is advisory. It has no return values.