Reading Restart Records from a CLFS Stream

To read all of the restart records in a Common Log File System (CLFS) stream (in reverse order), use the following procedure.

  1. Call ClfsReadRestartArea to obtain a read context and the restart record that was most recently written to the stream.

  2. Pass the read context you obtained in step 1 to ClfsReadPreviousRestartArea repeatedly to obtain the remaining restart records in the log.

Note  When you call ClfsWriteRestartArea to write a restart record to a stream, CLFS automatically sets the previous LSN of that record to the LSN of the previous restart record in the stream. Those previous LSNs form the chain that is followed by repeated calls to ClfsReadPreviousRestartArea.