the file system simulator , JAVA Programming

Assignment Help:

• Study and enhance the File System Simulator
- See the FS_sim slide deck
• New features
- blockinfo - a new application that displays the information about the blocks in the file system
- ctime - implement ctime (creation time) in the inode
• Test and analysis
- Examine the file system simulator
• Feature 1: blockinfo
- This is a new application for the FS simulator. Its function is to print out the number of data blocks and the number of free blocks in the file system
- You need to write a simple design specification where you describe
• how you find all the data blocks
• how you find all the free blocks
- There are more than one solutions and you can use any solution
- Usage example
java blockinfo
The number of data blocks: 18
The number of free blocks: 5
• Feature 2: ctime
- The ctime is a field in an inode. It is used by the file system to record the creation time of a file (or a directory)
- Detailed design
• Modify the creat method in the Kernel class. Need to record the creation time when this method is called
• Modify ls to display the creation time. Name your ls program myls
- Usage example
java myls
inode_numberr file_size ctime file_name
• Test the FS simulator
- Execute the following commands
1. java mkfs filesys.dat 256 40
2. java mkdir /termproj
3. echo "This is file1, a small file for testing" | java tee /termproj/file1.txt
4. echo "This is a file2, a big file for testing. The cs506 term project is not difficult at all if I work hard on it. I like to work on a project with my friend. I am working hard to complete the project on time with high quality." | java tee /termproj/file2.txt
5. java myls /termproj
6. java myls /termproj/file2
7. java blockinfo filesys.dat
8. java mydump filesys.dat
• Deliverables
- Project report
1. blockinfo design specification
2. Test report
• screen shot of your testing
• answers to the questions, including the dump
- Software - only your code
1. Source file (blockinfo.java, myls.java, kernel.java)
2. Executable file (blockinfo.class, myls.class, kernel.class)

- Answer the following questions
1. What are the block number and address range of the superblock? Explain the content of the superblock.
2. What are the block number and address range of the free list block? Explain the content of the free list block.
3. What are the block number range and the address range of the inode blcoks? How many inodes are used? List all the inodes that are used and their corresponding directories and files. Explain the content of all the inodes.
4. What are the block number and the address range of the data block of directory termproj? Explain the content of this data block.
5. What are the block number and address range of the data block of file file1?
6. What are the block number range and the address range of the data blocks of file file2?


Related Discussions:- the file system simulator

What are the services given by the rmi object, RMI Object services: In...

RMI Object services: In addition to its remote object architecture, RMI gives some basic object services, which may be needed in a distributed application. 1.  Object namin

Write a note on java beans, Question 1 Explain the data types in Java ...

Question 1 Explain the data types in Java Question 2 Write a note on StringBuffer Question 3 What is Exception? Question 4 Write a note on stream classes Questi

Minimal spanning tree decreasing edge algorithm, THE FOLLOWING PROGRAM SHOU...

THE FOLLOWING PROGRAM SHOULD BE JAVA IN ECLIPSE Minimal Spanning Tree Decreasing Edge Dismissal Reverse-delete algorithm. Develop an implementation that computes the MST as fol

Develop a shopping carts application , To develop a shopping carts applicat...

To develop a shopping carts application for an online store of your choice Outcomes: 1. Apply the GUI components of Java and other tools to create user-friendly interfaces.

Program to read a keyboard value and exit from the code, Using the above t...

Using the above thread program, now create 20 threads in your program and run them. No need to wait for the keyboard in each thread, just print "Hello" and its thread id in each t

Java and Arrays, AskWrite an application that uses an Array to store 10mess...

AskWrite an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be “I love

Test plan & white box plan, i would like to ask if you have someone able to...

i would like to ask if you have someone able to do test plan & white box plan for the game 2048. Game already developed and tested (unit test only ). this task developed using the

Medical services referral system - websphere administrator, Medical Service...

Medical Services Referral System:       Role : Websphere Administrator       Involved in Exposure to load balancing tools (BigIP, WAS plug-ins) and Siteminder.

File handling operation, Write a program called Drivers that displays infor...

Write a program called Drivers that displays information about Formula 1 drivers and their teams.     The program starts by prompting (asking) the user for the name of an input tex

Write Your Message!

Captcha
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