CS FundamentalsHardGATE CS

Dirty pages are written back by a background daemon every 30 s. A process writes 100 MB to a file and then the machine loses power 10 s later. Without fsync, how much of the data is guaranteed to be on disk?

  1. A. All of it
  2. B. None of it is guaranteed
  3. C. At least the first 50 MB
  4. D. Exactly the part written in the first 10 s

Correct answer: B. None of it is guaranteed

Delayed write-back means the data may still be only in the page cache; nothing is guaranteed until fsync() returns or the daemon has flushed it.

More Operating Systems questions

Exams that ask this topic