Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

}
if (fclsb.fc_state == VX_FCLS_OFF) {
close(fd);
return 0;
}
if (err = vxfs_fcl_sync(fclname, &lastoff)) {
close(fd);
return err;
}
if ((off = lseek(fd, off_t, uint64_t)) != uint64_t) {
close(fd);
return EIO;
}
while (off < lastoff) {
if ((size = read(fd, bufp, FCL_READSZ)) <= 0) {
close(fd);
return errno;
}
/* process fcl entries */
off += size;
}
close(fd);
return 0;
}
Summary of API functions
The following is a brief summary of File Change Log API functions:
Closes the FCL file and cleans up resources associated with the
handle.
vxfs_fcl_close()
Returns an opaque structure that embeds the current FCL
activation time and the current offset. This cookie can be saved
and later passed tovxfs_fcl_seek() function to continue reading
from where the application last stopped.
vxfs_fcl_cookie()
Returns information such as the state and version of the FCL file.vxfs_fcl_getinfo()
Opens the FCL file and returns a handle that can be used for
further operations.
vxfs_fcl_open()
Reads FCL records of interest into a buffer specified by the user.vxfs_fcl_read()
87File Change Log
Summary of API functions