Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When an idle disk block is allocated to a file, two metadata updates are required: U1: change the corresponding bit in the bitmap to

When an idle disk block is allocated to a file, two metadata updates are required: U1: change the 

When an idle disk block is allocated to a file, two metadata updates are required: U1: change the corresponding bit in the bitmap to indicate the block has been allocated, and U2: link the block into the file's block index (reached from inode) so that the block can be accessed via file I/O. An OS with deficiency may not support transaction-style execution of the two updates. That is, a system crash or power failure may take place after one update is completed but before the other one starts. When the system is restarted and resumes its execution, there can be a system mistake due to the unexpected incident. (1) What's the mistake scenario if U1 takes place but U2 doesn't? (2) What's the mistake scenario if U2 takes place but U1 doesn't? (3) Which mistake is less serious? Why?

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

The text in the image is describing a scenario in file system operations where two updates need to occur when allocating a disk block to a file Update ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database System Concepts

Authors: Abraham Silberschatz, Henry F. Korth, S. Sudarshan

7th Edition

0078022150, 978-0078022159

More Books

Students also viewed these Programming questions