Assume that the failure mode of the system during a write to the WORM device is simple: Blocks of memory on the WORM are written in bit serial fashion, and a failure may occur after writing any bit of a block. The WORM cannot normally be used to write partial blocks.
Part A: Given that the WORM is used to store a single item, for example, one bank account, propose an atomic update scheme. This should be a generalization of Lamport's stable storage scheme, and it must record the entire history of the changes to the stored item, since each change must be made by writing a new copy of the item.
Part B: Now, use the ideas from solutions to Homework 6 to generalize your solution above, so that the WORM may be used to store a file system, with atomically updatable files.