CS FundamentalsVery hardGATE CS (PYQ pattern)

An ext3-style file system appends one data block to a file; the update also modifies the inode and the block bitmap. In ORDERED journaling mode only metadata goes through the journal (journal records: transaction-begin, inode, bitmap, transaction-end), and the data block is written to its final location before the journal commit. Counting all disk writes including the later checkpoint of the metadata to its final locations, how many block writes occur in total?

  1. A. 8
  2. B. 6
  3. C. 7
  4. D. 9

Correct answer: C. 7

Ordered mode: 1 data write + 4 journal writes (begin, inode, bitmap, end) + 2 checkpoint writes (inode, bitmap) = 7. Full data journaling would also journal the data and checkpoint it: 5 + 3 = 8.

More Operating Systems questions

Exams that ask this topic