Skip to content

Commit 5917b45

Browse files
committed
NTFS: Minor documentation improvements
1 parent fe6d32b commit 5917b45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DiskAccessLibrary/FileSystems/NTFS/Log/LogFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public LfsRecord WriteRecord(int clientIndex, LfsRecordType recordType, ulong cl
246246
m_restartPage.RestartArea.LastLsnDataLength = (uint)record.Data.Length;
247247

248248
// If the client is writing a ClientRestart, the call to write a restart page (when updating the client record) is imminent, so no need to write a restart page now.
249-
// Note that CurrentLsn is used to determine which is restart page recent so we should not update the restart page without incrementing CurrentLsn.
249+
// Note that CurrentLsn is used to determine which restart page is more recent so we should not update the restart page without incrementing CurrentLsn.
250250
if (recordType != LfsRecordType.ClientRestart && endOfTransferRecorded)
251251
{
252252
// When the NTFS v5.1 driver restarts a dirty log file, it does not expect to find more than one transfer after the last flushed LSN.

DiskAccessLibrary/FileSystems/NTFS/Log/Structures/LfsRestartArea.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class LfsRestartArea
1919
private const int FixedLengthNTFS30 = 0x40; // NTFS v3.0 and v3.1
2020
public const ushort NoClient = 0xFFFF;
2121

22-
public ulong CurrentLsn;
22+
public ulong CurrentLsn; // The last LSN that was written before writing the restart page, also used to determine which of the two restart pages is more recent
2323
// ushort LogClients;
2424
public ushort ClientFreeList; // The index of the first free log client record in the array
2525
public ushort ClientInUseList; // The index of the first in-use log client record in the array

0 commit comments

Comments
 (0)