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
Parameters
The following is the syntax for the vxfs_fcl_seek() function:
int vxfs_fcl_seek(void *handle, struct fcl_cookie *cookie, int where)
The function parameters are as follows:
The *handle parameter should be the same handle that was returned by the most recent call to vxfs_fcl_open(). This is not necessarily the same handle used in vxfs_fcl_getcookie(). The application may open the FCL file, get the cookie, and close the FCL file in one session, and then open the FCL file and submit the saved cookie in a later session. For each open session on the FCL file, the valid handle is the one returned by vxfs_fcl_open() for that session.
The *cookie parameter should point to a valid cookie that has been returned from a call to vxfs_fcl_getcookie() on the same FCL file or one of its checkpoints or one of the dumped or restored copies of the same FCL file. It is the responsibility of the user application to decide which FCL file is valid for a particular cookie and to use them in a sensible combination.
Note:
The *cookie parameter may be NULL if where has a value of FCL_SEEK_SET or FCL_SEEK_END.
The where parameter should have a value of FCL_SEEK_SET, FCL_SEEK_END, or FCL_SEEK_COOOKIE.
If where is FCL_SEEK_SET or FCL_SEEK_END, the *cookie parameter is ignored and vxfs_fcl_seek() seeks to either the start or end of the FCL file respectively, that is, where the first FCL record starts or where the last record ends.
If where has a value of FCL_SEEK_COOKIE, vxfs_fcl_seek() extracts the activation time and offset stored in the *cookie parameter.
If the FCL has been deactivated (switched off) from the time the application last called the vxfs_fcl_getcookie() function, or if the record at the offset contained in the *cookie was purged by a hole-punch, vxfs_fcl_seek() returns an FCL_EMISSEDRECORD error. If not, vxfs_fcl_seek then sets the current file position to the offset contained in the cookie. Further calls to vxfs_fcl_read() return records from this offset.