NTFS Documentation: Update Sequence Technique

Interest

The purpose of update sequence technique (also called fixup technique in the Linux driver) is to detect incomplete multi-sector transfers. All important metadata structures use this technique:

How it works

Writing a structure to the storage unit involves the following operations:
  1. In memory, increment by one the update sequence (a value stored in the header part of the structure). The value 00 00 must be skipped.
  2. In memory, patch the update sequence at the end of each sector of the structure, and save the original value in the update sequence array (an array located in the header part of the structure)
  3. Copy the structure from memory to the storage unit

Reading a structure from the storage unit involves the following operations:

  1. Copy the structure from the storage unit to memory
  2. In memory, check if its magic number is correct
  3. In memory, check if the end of each sector of the structure is the update sequence

Note:


Regis Duchesne at VIA, ECP, France
Last modified: Thu Jan 28 18:07:56 PST 1999