0
0
Operating Systemsknowledge~10 mins

Journaling file systems in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to describe the main purpose of a journaling file system.

Operating Systems
A journaling file system primarily helps to [1] data after a system crash or power failure.
Drag options to blanks, or click blank then click option'
Arecover
Bdelete
Cspeed up
Dcompress
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing journaling with data compression.
Thinking journaling deletes data.
2fill in blank
medium

Complete the sentence to explain what a journal records.

Operating Systems
The journal in a journaling file system records [1] before they are applied to the main file system.
Drag options to blanks, or click blank then click option'
Afile contents
Bmetadata changes
Cuser passwords
Derrors
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming the journal stores user passwords.
Thinking the journal logs all file contents.
3fill in blank
hard

Fix the error in the description of journaling types.

Operating Systems
In a journaling file system, [1] journaling writes both metadata and file data to the journal before committing.
Drag options to blanks, or click blank then click option'
Afull
Bpartial
Clazy
Dno
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing full journaling with partial journaling.
Thinking lazy journaling writes all data immediately.
4fill in blank
hard

Fill both blanks to complete the journaling file system code snippet.

Operating Systems
if system_crash_occurred:
    replay_journal([1])
    update_file_system([2])
Drag options to blanks, or click blank then click option'
Ajournal_entries
Cbackup_data
Dtemporary_files
Attempts:
3 left
💡 Hint
Common Mistakes
Using backup data instead of journal entries.
Confusing temporary files with journal data.
5fill in blank
hard

Fill all three blanks to complete the journaling file system recovery process.

Operating Systems
journal = read_journal([1])
for entry in journal:
    if entry.[2] == 'metadata':
        apply_metadata_change(entry.[3])
Drag options to blanks, or click blank then click option'
Adisk
Btype
Cdata
Dmemory
Attempts:
3 left
💡 Hint
Common Mistakes
Reading journal from memory instead of disk.
Checking wrong entry attribute instead of type.