Metadata update dependency
A metadata update dependency is an ordering requirement between persistent changes needed to preserve a filesystem invariant.
Ordering changes and recording recovery information are different consistency strategies. [1]
In a rename the new directory entry must reach stable storage before the old one is removed, otherwise a crash between the writes can leave neither name. Three rules cover such cases: never reset an old pointer before the new one is set, never reuse a resource before all pointers to it are nullified, and never point to a structure before it is initialised. The 1994 analysis assumes each individual update is atomic. [3] Sector-sized updates are not by themselves proof of power-fail atomicity on a particular device. [5]
Enforcing order with synchronous writes is so slow that implementations skipped some dependencies, which could expose a deleted file's data. Soft updates track dependencies per update rather than per block and temporarily roll back pending changes when a block is written. [3] Per-block tracking fails when a create and a delete share a directory block and an inode block, because they need opposite write orders. [1]
Soft updates came within 5% of a memory-based file system and ran more than twice as fast as synchronous writes on metadata-heavy benchmarks. [3] On a news-server workload they reached 87% of an unprotected baseline with 13% more disk writes, and after a crash only allocated-but-free blocks and inodes remained to fix in the background. [1]
Featherstitch permits dependent patches to commit together within one block. Across blocks, a predecessor that is merely in flight does not satisfy the dependency: the controller may finish the dependent block first. This is a commitment-order rule, not a promise of atomic block writes. [5]
Relations
- related
- Featherstitch, Soft updates, Persistence ordering, Filesystem consistency invariant, Patchgroup, Hard patch (Featherstitch)
Limitations
- An ordering constraint does not itself provide atomicity for an entire application transaction. [1]
- Ordering relies on the storage stack honouring write order, which a disk that does not reliably flush its cache defeats, and the rules are hard to implement correctly. [4]
- Featherstitch permits only one pending version per block; its safety invariants do not prove eventual completion (liveness). [5]
- Featherstitch requires completion reports to mean stable storage, not volatile cache acknowledgement; the checker cannot verify that device promise. [5]
Citations
- Seltzer et al. Journaling Versus Soft Updates: Asynchronous Meta-data Protection in File Systems. USENIX ATC 2000, pp. 71-84.
- Ganger and Patt. Metadata Update Performance in File Systems. USENIX OSDI 1994, pp. 49-60.
- Chidambaram, Sharma, Arpaci-Dusseau and Arpaci-Dusseau. Consistency Without Ordering. USENIX FAST 2012.
- Frost et al. Generalized File System Dependencies. SOSP 2007, sections 3.1-3.3 and 7.
Further reading
Sources & caveats
- Soft updates are the 1994 authors' own proposal, and three of the six authors of the 2000 comparison also worked on soft updates, so both evaluations are partly self-evaluations.
- The 1994 numbers come from one operating system and one disk of that period; the percentages are workload-specific.
- The 2012 paper proposes back-references as an alternative to ordering, so its criticism of soft updates is the view of a competing design.
- In the create-delete example the block-level dependency graph has a cycle, while the graph over individual pointers has none.
- The 2026-11-12 source review adds the same-block and in-flight distinction; the accompanying constructed checker is not an execution of Featherstitch.
- The checker assumes one in-flight version per block label. Its snapshot predicate does not validate submission transitions or liveness; section 3.2 treats those separately.