What is called journaling in a Linux operating system?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. File saving as transaction
Explanation
Journaling file systems (e.g. ext3/ext4) maintain a separate log, the journal, in which pending metadata (and optionally data) changes are first recorded as a transaction before they are committed to the main file system structures. If the system crashes mid-write, the journal lets the file system replay or discard incomplete transactions on reboot instead of running a full, slow consistency check, so the file system can be restored to a consistent state quickly. This technique of treating file updates as atomic logged transactions is exactly file saving as a transaction, option (ii); it has nothing to do with scheduling, threads, or being an editor.More Database Management Systems questions
- In a file allocation system, the following allocation schemes are used: (A) Contiguous allocation, (B) Indexed allocation, (C) Linked alloc…
- Suppose a Linux file system has a block size of 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first…
- Consider a disk system having 60 cylinders. Disk requests are received by the disk drive for cylinders 10, 22, 20, 2, 40, 6, and 38, in tha…
- A disk queue has requests for I/O on cylinders 98, 183, 37, 122, 14, 124, 65, 67, with the disk head currently at cylinder 53. Using the sh…
- Consider the following statements about UNIX file permissions: (A) UNIX provides three permission types — Read, Write and Execute. (B) UNIX…
- In the ________ disk scheduling algorithm, the disk head moves from one end of the disk to the other, servicing requests along the way. Whe…