Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sync2(2) [osf1 man page]

sync2(2)							System Calls Manual							  sync2(2)

NAME
sync2 - Flush file system metadata and data from memory buffers to disk SYNOPSIS
#include <sys/mount.h> int sync2 ( unsigned int POLICY , char *path); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: sync2(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Flush the file system memory buffers to disk. The argument is one of the following: Flush all memory buffers. Specifying this flag causes the function to behave the same as the sync function. See sync(2). Flush all memory buffers except those under smooth sync control. The name of a file system or fileset. Specify the optional path parameter when you want to have the POLICY act only on that file system instead of all file systems. Specify a NULL argument when you want to have the POLICY act on all file systems. DESCRIPTION
The sync2 function causes file system data to be flushed (written) to disk. Which memory buffers are flushed to disk depends on the POLICY argument. If the policy is SYNC_SYNCPOLICY, all memory buffers are flushed to disk. If the policy is SYNC_SMOOTHSYNCPOLICY, all memory buffers except those under smooth sync control are flushed to disk. To which file systems the POLICY argument applies depends on the path argument. To apply the policy to one file system, name it in the path argument. To apply the policy to all file systems, specify the path argument as NULL. The writing, although scheduled, is not necessarily complete upon return from the sync2 function. RELATED INFORMATION
Functions: sync(2) Commands: sync(8) Standards: standards(5) delim off sync2(2)

Check Out this Related Man Page

sync(2) 							   System Calls 							   sync(2)

NAME
sync - update super block SYNOPSIS
#include <unistd.h> void sync(void); DESCRIPTION
The sync() function writes all information in memory that should be on disk, including modified super blocks, modified inodes, and delayed block I/O. Unlike fsync(3C), which completes the writing before it returns, sync() schedules but does not necessarily complete the writing before returning. USAGE
The sync() function should be used by applications that examine a file system, such as fsck(1M), and df(1M), and is mandatory before rebooting. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
df(1M), fsck(1M), fsync(3C), attributes(5), standards(5) SunOS 5.10 5 Jul 1990 sync(2)
Man Page