Home > Veritas Storage Foundation™ File System Manual Pages
VXFS_FCL_SYNC (3) |
Library Functions |
-l vxfsutil -ldl
#include <sys/types.h>
#include <vxfsutil.h>
int vxfs_fcl_sync(char *fname, uint64_t *offp);
Setting a synchronization point in the FCL also resets the FCL data write interval for all of the files in the file system. The FCL data write interval is a VxFS tunable used to limit the number of FCL records for file data changes during a specified time interval. This limitation applies to all files in all read-write mounted filesets for a given file system volume or device (see the vxtunefs(1M) manual page).
By resetting the FCL data write interval, an application is certain to find at least one FCL data change record for each file in the file system that is being overwritten, extended, or truncated the next time that the application reads the FCL file from offp.
Multiple applications can use the vxfs_fcl_sync() function. The synchronization point that is set does not affect the operation of other applications using the FCL, and multiple applications issuing a call to vxfs_fcl_sync() obtain different offsets to use as their own synchronization points.
To use this function, specify -l vxfsutil while linking.
vxfs_fcl_sync() has two parameters, a pointer to the FCL file name, and the address of a 64-bit offset.
fd = open(FCLFILE, O_RDONLY, 444); if (fd < 0) { return ENOENT; } ret = vxfs_fcl_sync(FCLFILE, &save_off); if (ret < 0) { return EINVAL; } (void)close(fd);
Last updated: 01 April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.