Introduction: This lab assignment requires you to answer questions related to various types of corruptions that...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Introduction: This lab assignment requires you to answer questions related to various types of corruptions that may occur in a simple file system. The simple file system is the same as the one in Task 10.2. First, there is an inode bitmap, which marks whether each corresponding inode is allocated (1) or free (0). There are 16 inodes. Each allocated inode has contents consisting of three fields. The first field is either f (file) or d (directory). The second field a either points to a single data block or is -1 which indicates that the files is empty. Note that in this limited file system, each file or directory can only occupy a single data block. The third field is a reference count for files. For directories, it indicates the number of directories within this directory. Answer the following questions: Question 1: The state of the file system is shown below: inode bitmap inodes 1000110001100000 [d a:0 r: 4] [] [] [] [fa:8 r:2] [d a:11 r:2] [] [] [] [d a:5 r:2] [d a:4 r:3] [] [] [] [d a:-1 r:1] [] data bitmap 1000110010010000 data [(., 0) (.., 0) (g, 10) (w,5) (1,4)] [] [] [] [(,10) (,0) (z,9) (c, 4)] [(., 9) (.., 10) ] [] [] [f] [] [] [(.,5) (,0)] [] [] [] [] (a) Is there any inconsistency in this filesystem? If so, what is the inconsistency? (b) What could be done to repair this filesystem so that it is consistent again? Question 2: The state of the filesystem is now found to be: inode bitmap 1000110001100000 inodes data bitmap data [d a:0 r: 4] [][] [] [fa: 8 r:2] [d a:11 r:2] [] [] [] [da:5 r:2] [d a:4 r:3] [] [f a: -1 r:1] [] [] [] 1000110010010000 [(., 0) (.., 0) [(., 10) (.., 0) [] [] [] [(.,5) (g, 10) (z, 9) (w,5) (1,4)] [] [] [] (c, 4) ] [(.,9) (..,10)] [] [] (0)] [] [] [] [] (a) What is the inconsistency in this case? (b) What is the difference between this case and the one in Question 1? What could be done to repair this filesystem so that it is consistent again? Question 3: The state of the filesystem is as below: inode bitmap 1000110001100000 inodes data bitmap data [f a:0 r: 4] [] [] [] [f a: 8 r:2] [d a:11 r:2] [] [] [] [da:5 r:2] [da:4 r:3] [] [] [] [] [] 1000110010010000 [(,0) (.., 0) (g, 10) (w,5) (1,4)] [] [] [] [(., 10) (,0) (z, 9) (c, 4) ] [,9) (..,10) ] [] [] [] [] [] [(.,5) (..,0)] [] [] [] [] (a) What could have happened that caused the filesystem to result in this state? (b) Could this filesystem be repaired without data loss? Why? (c) If not, how much data are lost? Question 4: The state of the filesystem is as below: inode bitmap 1000110001100000 inodes [d a:0 r: 4] [] [] [] [fa:8 r:2] [d a:11 r:2] [] [] [] [da: 5 r:2] [d a:4 r:3] [] [] [] [] [] data bitmap 1000110010010000 data [(,0) (..,0) (g, 10) (w,5) (1,4)] [] [] [] [(., 10) (,0) (z,9) (c, 4)] [(9) (..,10)] [] [] [] [] [] [(.,5) (..,3)] [] [] [] [] (a) Is there sufficient redundancy in the file system structure that enables a repair? (b) If so, what is it and how could the filesystem be repaired? Introduction: This lab assignment requires you to answer questions related to various types of corruptions that may occur in a simple file system. The simple file system is the same as the one in Task 10.2. First, there is an inode bitmap, which marks whether each corresponding inode is allocated (1) or free (0). There are 16 inodes. Each allocated inode has contents consisting of three fields. The first field is either f (file) or d (directory). The second field a either points to a single data block or is -1 which indicates that the files is empty. Note that in this limited file system, each file or directory can only occupy a single data block. The third field is a reference count for files. For directories, it indicates the number of directories within this directory. Answer the following questions: Question 1: The state of the file system is shown below: inode bitmap inodes 1000110001100000 [d a:0 r: 4] [] [] [] [fa:8 r:2] [d a:11 r:2] [] [] [] [d a:5 r:2] [d a:4 r:3] [] [] [] [d a:-1 r:1] [] data bitmap 1000110010010000 data [(., 0) (.., 0) (g, 10) (w,5) (1,4)] [] [] [] [(,10) (,0) (z,9) (c, 4)] [(., 9) (.., 10) ] [] [] [f] [] [] [(.,5) (,0)] [] [] [] [] (a) Is there any inconsistency in this filesystem? If so, what is the inconsistency? (b) What could be done to repair this filesystem so that it is consistent again? Question 2: The state of the filesystem is now found to be: inode bitmap 1000110001100000 inodes data bitmap data [d a:0 r: 4] [][] [] [fa: 8 r:2] [d a:11 r:2] [] [] [] [da:5 r:2] [d a:4 r:3] [] [f a: -1 r:1] [] [] [] 1000110010010000 [(., 0) (.., 0) [(., 10) (.., 0) [] [] [] [(.,5) (g, 10) (z, 9) (w,5) (1,4)] [] [] [] (c, 4) ] [(.,9) (..,10)] [] [] (0)] [] [] [] [] (a) What is the inconsistency in this case? (b) What is the difference between this case and the one in Question 1? What could be done to repair this filesystem so that it is consistent again? Question 3: The state of the filesystem is as below: inode bitmap 1000110001100000 inodes data bitmap data [f a:0 r: 4] [] [] [] [f a: 8 r:2] [d a:11 r:2] [] [] [] [da:5 r:2] [da:4 r:3] [] [] [] [] [] 1000110010010000 [(,0) (.., 0) (g, 10) (w,5) (1,4)] [] [] [] [(., 10) (,0) (z, 9) (c, 4) ] [,9) (..,10) ] [] [] [] [] [] [(.,5) (..,0)] [] [] [] [] (a) What could have happened that caused the filesystem to result in this state? (b) Could this filesystem be repaired without data loss? Why? (c) If not, how much data are lost? Question 4: The state of the filesystem is as below: inode bitmap 1000110001100000 inodes [d a:0 r: 4] [] [] [] [fa:8 r:2] [d a:11 r:2] [] [] [] [da: 5 r:2] [d a:4 r:3] [] [] [] [] [] data bitmap 1000110010010000 data [(,0) (..,0) (g, 10) (w,5) (1,4)] [] [] [] [(., 10) (,0) (z,9) (c, 4)] [(9) (..,10)] [] [] [] [] [] [(.,5) (..,3)] [] [] [] [] (a) Is there sufficient redundancy in the file system structure that enables a repair? (b) If so, what is it and how could the filesystem be repaired?
Expert Answer:
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date:
Students also viewed these programming questions
-
Consider the following: Over many years innovation has (and still is) mainly concerned with improvements that embrace new technology and typically add value for customers that can afford to pay for...
-
2. What is the "bid ask spread as it applies to financial markets? 3. Define the term "derivative" as it apply to financial markets giving: a. An example of a derivative [2] 21 b. C. A description of...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Draw a plausible mechanism for each of the following transformations: (a) (b) [TSOH] MENH2 -H20
-
If each of the three links of the mechanism has a weight W, determine the angle for equilibrium. The spring, which always remains horizontal, is unstretched when = 0. Given: W = 25 lb k = 60lb/ft a...
-
blocks away can carry no more than ten passengers. There are 23 people waiting at the The free trolley between the downtown Life Sciences Building and its parking structure six city parking structure...
-
Consider the Michaelis-Menten model introduced in Eq. (12.23). Graph the expectation function for \(\theta_{1}=100,150,200,250\) for \(\theta_{2}=0.06\). Overlay these curves on the same set of...
-
Explain briefly, how each of the following transactions would affect a companys balance sheet a. Purchase of a new $80 million building, financed 40% with cash and 60% with a bank loan. b. Purchase...
-
Maslow's hierarchy of needs provide a useful framework for understanding how and why local products and brands can be extended beyond home-country borders. How can Maslow's needs hierarchy be used in...
-
Under the decimal system of computing time worked at Timmerman Company, production workers who are tardy are "docked" according to the schedule shown below. Minutes Late in Ringing inFractional Hour...
-
The following information is produced by comparing the cash deposits and withdrawals recorded by the M&N Windows Ltd for the month with their most recent bank statement received at 30 June 2019: M&N...
-
A Return to Review Question 7.4A and prepare a statement of financial position as at 30 June 2016. Data From Review Question 7.4A 7.4A Extract a statement of profit or loss for the year ending 30...
-
A certain standardized tests math scores have a bell-shaped distribution with a mean of 520 and a standard deviation of 119. (a) What percentage of standardized test scores is between 401 and 639?...
-
From the following information, draw up the trading account section of the statement of profit or loss of C. Dale for the year ending 31 January 2016, which was his first year in business: Carriage...
-
The following is the trial balance of T. Owen as at 31 March 2016. Draw up a set of financial statements for the year ended 31 March 2016. Dr Cr Inventory: 1 April 2015 52,800 Sales 276,400 Purchases...
-
Imagineering, Inc., is considering an investment in CAD-CAM compatible design software with the cash flow profile shown in the table below. Imagineering's MARR is 18 percent/year. a. What is the...
-
Questions below based on figure above: Consider the Arithmetic Logic Unit (ALU) block diagram shown in Fig. 1(a). Each block is numbered in brackets, for example (1), (2)... (10). The D-Flip-Flops...
-
In order to get an idea on current buying trends, a real estate agent collects data on 10 recent house sales in the area. Specifically, she notes the number of bedrooms in each house as follows: a....
-
When might a supertype/subtype hierarchy be useful?
-
Match the following terms and definitions: a. Lost previous data content b. Detailed historical data c. Data not altered or deleted d. Data warehouse of limited scope e. Dimension and fact tables f....
-
The OLTP system data for the Fitchwood Insurance Company is in a series of flat files. What process do you envision would be needed in order to extract the data and create the ERD shown in Figure...
-
Henry Ford, founder of Ford Motor Company, is quoted as saying that customers could choose a car in any color as long as it was black. Things have come a long way since that timewhen customization...
-
Not long ago, New England Confectionery Company, or Necco for short, marked the production of its one trillionth candy wafer. The humble roots of Necco, the country's oldest continuously operating...
-
What is utility?
Study smarter with the SolutionInn App