Veritas™ File System Programmer's Reference Guide - Solaris
- Veritas File System software developer's kit
- File Change Log
- About the File Change Log file
- Record types
- File Change Log tunables
- Application programming interface for File Change Log
- API functions
- File Change Log record
- Copying File Change Log records
- Veritas File System and File Change Log upgrade and downgrade
- Reverse path name lookup
- Multi-volume support
- Named data streams
- Veritas File System I/O
- Caching advisories
- Extents
- Thin Reclamation
vxfs_fcl_getcookie
The vxfs_fcl_getcookie and vxfs_fcl_seek() functions are effective methods for remembering a position in the FCL file that the application has processed earlier. This then can be used as a restarting point. This is a highly useful tool for applications.
The vxfs_fcl_getcookie() function returns an opaque fcl_cookie structure which embeds information comprising the current activation time of the FCL file and an offset indicating the current position in the FCL file. This cookie can be passed into vxfs_fcl_seek to seek to the position in the FCL file defined by the cookie.
A typical incremental backup or index-update program can read to the end of the FCL file and perform actions based on the FCL records. The application can get information about the current position in the FCL file using vxfs_fcl_getcookie and then store the cookie in a persistent structure such as a file. The next time the application needs to perform an incremental operation, it reads the cookie and passes it to vxfs_fcl_seek to seek to the point where it left off. This enables the application to read only the new FCL records.
More Information