Skip to content

Commit fe6d32b

Browse files
committed
NTFS: NTFSLogClient: Minor documentation improvement
1 parent 329f3f3 commit fe6d32b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DiskAccessLibrary/FileSystems/NTFS/Log/NTFSLogClient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ private LfsRecord WriteRestartRecord(ulong usnJournalUnknown1, ulong previousRes
301301
LfsClientRecord clientRecord = m_logFile.GetClientRecord(m_clientIndex);
302302
clientRecord.OldestLsn = restartRecord.StartOfCheckpointLsn;
303303
clientRecord.ClientRestartLsn = result.ThisLsn;
304+
// Note that writing a client restart record without also updating ClientRestartLsn has no effect.
305+
// During the analysis pass, the NTFS v5.1 driver will use ClientRestartLsn in the most recent restart page to determine
306+
// the StartOfCheckpointLsn that the scan should start from, any client restart record that is found during the scan will be ignored.
304307
m_logFile.WriteRestartPage(isClean);
305308
m_currentRestartRecord = restartRecord;
306309
return result;

0 commit comments

Comments
 (0)