CS FundamentalsHardGATE CS
Which property of a journaling file system's ordered mode is correct?
- A. Both data and metadata are written to the journal before the main area
- B. Only metadata is journaled, but data is written before its metadata commits
- C. Nothing is journaled at all; fsck repairs everything after a crash
- D. Data is journaled, while metadata is written straight to the main area
Correct answer: B. Only metadata is journaled, but data is written before its metadata commits
Ordered mode journals metadata only but forces the data blocks to disk first, so a committed inode never points to garbage. Full data journaling writes everything twice; writeback mode gives no data ordering.
More Operating Systems questions
- A process's address space uses three-level paging with 9 bits per level and 4 KB pages (8-byte entries, so each table is one 4 KB page)…
- A CPU-bound process and an I/O-bound process share a single CPU under a multilevel feedback queue with priority boosting. What is the…
- Two processes each need two printers, and the system has exactly 3 printers; each requests its printers one at a time and holds them until…
- A file system uses 4 KB blocks. A file of 10,001 bytes is stored. How much space is lost to internal fragmentation in its last block?
- Statement 1: A context switch between two threads of the same process need not flush the TLB. Statement 2: A context switch between two…
- A process's page table has valid entries for pages 0-5 only. With 1 KB pages, which logical address causes a trap instead of a translation?