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
Input
This function has the following input:
*hndl is a pointer returned by a previous call to vxfs_fcl_open
*buf is a pointer to a buffer of size at least *bufsz
*bufsz specifies the buffer size
eventmask is a bit-mask that specifies a set of events which is of interest to the application. It should be a "logical or" of a set of event masks specified in the fcl.h header. For example, if the eventmask is (VX_FCL_CREATE_MASK | VX_FCL_UNLINK_MASK), vxfs_fcl_read returns only file create and delete records.
If an application needs to read all of the record types, the application can specify a default eventmask mask as FCL_ALL_V4_EVENTS. This returns all valid Version 4 FCL records in the FCL file.
Note:
If VX_FCL_EVENTMASKCHG_MASK is set in eventmask and the records returned by vxfs_fcl_read contain a VX_FCL_EVENTMASK_CHG record, it is always the last record in the buffer. This lets the application to readjust the eventmask if required. In addition, if the application discovers from the eventmask change record that a particular event is no longer recorded, it can decide to stop further reading.
*nentries specifies the number of entries that should be read into the buffer in this call to vxfs_fcl_read. If *nentries is "0," vxfs_fcl_read reads as many entries as well fit in the buffer.