Write a program that can erase information in a directory

Assignment Help Programming Languages
Reference no: EM131954658

Programming Assignment

1. This assignment is a pair programming effort.

2. Purpose: Develop a set of tools that can helptorecover a damaged file system. For many reasons, the information in a directory file, in an inode etc. may get damaged and cannot be read. As a result, a user program will not be able to access some parts of the file system. In this exercise, we ask you to develop a set of tools and show that you can use them to recover a file system ifone or more of its directory inode is damaged.

3. Requirements:

1) Your tools and recovery program will work on the xv6 file system.

2) Write a program, called the directoryWalker, that prints out the names of each file and directory in a file system tree, starting at a given point in the tree. The program will also write the inodes associated with each file and directory.

3) Write a program, called the inodeTBWalker, that prints out all the allocated inodes. You obtain this set of inodes from the inode table.

4) Write a program that will compare the output from the two Walkers.

5) Write a program that can erase the information (including the block pointers) in a directory inode so that you can test and demonstrate your results.

6) Write a program that can recover a file system if one or more of its directory inode is damaged and therefore cannot be read. Can you do this just by having the Walkers as specified above? What is the best you can do in terms of the number of damaged directory inodes?

7) Can you recover the file system if other parts of the file system data structure is damaged?Implementation not necessary but will count.

Reference no: EM131954658

Questions Cloud

Discounted cash flow model of calculating a firm : When can you use the discounted cash flow model of calculating a firm's stock price? When can you not use it?
Summarize the process researchers used to collect data : What research methods were used? Summarize the process researchers used to collect data.
What was your total return for the past year : If the bond had 15 years to maturity when you originally purchased it, what was your total return for the past year? Assume semiannual compounding.
Calculate the present value of the lease payments : A. Calculate the present value of the lease payments, assuming monthly compounding at the given APR of 8%.
Write a program that can erase information in a directory : Write a program that can erase the information (including the block pointers) in a directory inode so that you can test and demonstrate your results.
How would you have responded to each of those indicators : How would you have responded to each of those indicators? What kinds of questions would you have asked and why?
What is the beta of portfolio : Stock X has a beta of .6, stock Y has a beta of 1.4, and stock Z has a beta of 1.2. What is the beta of your portfolio?
What is the net present value given a required rate : What is the net present value given a required rate of return of j4=5.89%?
Create an external style sheet to format as given : Create an external style sheet (call it format2.css) to format as follows: documentbackground color of yellow and document text color of green.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a number guessing game program

Write a number guessing game program. The program will first generate a random number from 1 to 100. Then, the user guesses a number and the game will report whether the guess is too low or too high.

  Write a program that will help the club determine the winner

The CSIT Racing Club is a group that runs amateur car racing events throughout the US. In This project, write a program that will help the club determine the winner of their Fall Rally Race.

  Instantiate button group object-add radio buttons to panel

Do the following to add radio buttons to panel: Declare three objects small, medium, and large of type JRadioButton. Instantiate button group object and add buttons to it.

  Create a program named bookexceptiondemo

Create a program named BookExceptionDemo for the Peterman Publishing Company. The company has decided that no published book should cost more than 10 cents per page. Create a BookException class whose constructor re-quires three arguments: a..

  Create a python file called passwordsaver

We will be extending the Caesar cypher we looked at earlier into a full-fledged password saver. Create a python file called PasswordSaver.py in PyCharm

  Program using ten radio buttons to show five states

It is program using 10 Radio Buttons to show 5 States and 5 Capitals to user's interface. Also, there is text box to print "Correct" and "Incorrect" when Sate and the Capital is a correct match.

  Create meaningful headings for your data on sheet1.

Enter the data from page 2 of guest.doc directly below the existing data on your newly named sheet.

  Write program which reads a data file containing information

In this assignment you will write a program which reads a data file containing information in different formats, validates this data, and prints out a report incorporating this data.

  Define back-end and front-end applications.

Define procedures (subroutines) and functions and the difference between them.

  Design the swing applet and html test file

You can download sound clips and graphics images from Internet to use in the program. Design the Swing applet named JPartyPlanner and HTML test file to run Swing applet.

  Application to make a guessing game

The number I guess should be compared with the random generated number. If I guess correctly, the second field could display a message like "you win", else it should display "more" or "less" depending on my guess. If I fail to guess those 5 times,..

  Write pseudocode for worm moving toward apple

Worm is moving toward an apple. Each time it moves, worm cuts distance between itself and apple by its own body length until worm is close enough to enter the apple. Give pseudocode for this.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd