Please enter search query.
Search <book_title>...
Veritas™ File System Programmer's Reference Guide - Solaris
Last Published:
2018-08-24
Product(s):
InfoScale & Storage Foundation (7.2)
Platform: 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
Sample steps
The following provides sample steps for possible application use.
Sample application setup
- Open the FCL file.
vxfs_fcl_open(mount_point, 0, &fh);
- Set up the time to perform the seek.
- Get current time using gettimeofday.
- Fabricate the fcl_time_t for the time an hour before.
- Seek to the record in the FCL file at that time.
gettimeofday(&tm, NULL); tm.sec -= 3600 vxfs_fcl_seektime(fh, tm);
- Read the file with the appropriate event masks until the end of file is reached. The application is interested in only the file open records and the access information.
- Check if the file inode number and generation count are same as the ones being sought for each FCL record.
- Print information about the user who has accessed the file, if applicable.
vxfs_fcl_read(fh, buf, BUFSZ, VX_FCL_FILEOPEN_MASK | \VX_FCL_ACCESSINFO_MASK, &nentries);