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
File Change Log superblock
Changes to files and directories in the file system are stored as FCL records. The superblock, which is currently stored in the first block of the FCL file, describes the state of the FCL file.
The superblock indicates the following:
Whether FCL logging is enabled
What time it was activated
The current offsets of the first and last FCL records
The FCL file version
The event mask for the set of events currently being tracked
The time that the event mask was last changed
The FCL file containing just the superblock is created when FCL is first activated using the fcladm on command. The superblock gets removed only when the FCL file is removed using the fcladm rm command.
When the FCL is activated using fcladm on, the state in the superblock and its activation time are changed. Whenever any file system activity results in a record being appended to the FCL file, the last offset gets updated.
As the FCL file grows in size, depending on the file system tunables fcl_maxalloc and fcl_keeptime, the oldest records at the start of the FCL file are thrown away to free up some space, as the first offset gets updated. When the set of events tracked in the FCL file is changed using the [set] or [clear] options of the fcladm command, the event mask and the event mask change time are updated. An event mask change also results in an event mask change record containing the old event mask and the new event mask change being logged in the FCL file.