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_open
The following is the syntax for the vxfs_fcl_open() function:
int vxfs_fcl_open(char *pathname, int flags, void **handle);
This function opens the FCL file and returns a handle which should be used for all further accesses to the FCL through the API (for example, vxfs_fcl_read, vxfs_fcl_seek, etc.).
vxfs_fcl_open has two parameters: *pathname and **handle. The *pathname can be a pointer to an FCL filename or a mount point. If *pathname is a mount point, vxfs_fcl_open automatically determines if the FCL is activated on the mount point and opens the FCL file associated with the mount point (currently mount_point/lost+found/changelog).
vxfs_fcl_open then determines if it is a valid FCL file, and if the FCL file version is compatible with the library. The vxfs_fcl_open() function then assimilates meta-information about the FCL file into an opaque internal data structure and populates **handle with a pointer.
Just like the lseek(2) and read(2) system calls, the FCL file **handle has an internal offset to indicate the position in the file from where the next read starts. When the FCL file is successfully opened, this offset is set to the first valid offset in the FCL file.