Runtime filesystem consistency checking
Runtime filesystem consistency checking
Posted Apr 3, 2012 17:53 UTC (Tue) by cesarb (subscriber, #6266)Parent article: Runtime filesystem consistency checking
Now that this problem has been recognized, could future filesystems be designed so that all relevant consistency properties are local instead of global?
In the quoted example, for instance, the filesystem could record an "owner" identifier for each data block, instead of a single "used/free" bit. Then the check "two owners point to the same data block" becomes instead "the data block points back to the correct owner".
In an ext3-style implementation of this concept, the owner identifier could be the block which points to this data block. So if you are looking at a data block pointed to by an indirect block you have to check 3 invariants, all local: "the data block owner is the indirect block", "the indirect block points to the data block", and "there are no duplicate data blocks within this indirect block". The same applies if you have a block containing inodes instead of an indirect block.
