the file system simulator , JAVA Programming

• 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 (,,
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?

Posted Date: 3/22/2013 4:04:19 AM | Location : United States

Related Discussions:- the file system simulator , Assignment Help, Ask Question on the file system simulator , Get Answer, Expert's Help, the file system simulator Discussions

Write discussion on the file system simulator
Your posts are moderated
Related Questions
how do I use constructors in java and how do I apply them

We want the best java programmer available. Project Description: Java | Portlets| JSF Liferay (not essential but is preferable) Big Data and User online tools. Multilin

In an external JavaScript file write code that, upon form submission, scans the list of courses for a match (case should be insensitive). If a match is found, change the div's back

how to retrieve data from Excel file, and display that data in table on jsp page?

Project Description: A web developer is required to finish a webcam site with basic account management and voting functionality. The website can make use of a third party fla

Need java programmer for an assignment "Prepare a program that will accept a sequence of file names as command-line arguments. These files will consist of ASCII text representin

An aspect is the cross-cutting functionality that you are executing. It is the aspect of your application you are modularizing. An example of an aspect is logging. Logging is somet

Objectives: socket programming in Java: TCP Exercises: Goal: In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web ser

Mention any five applications of Artificial Intelligent System? 1)Medical Diagnosis 2)Robots 3) Games 4) Business intelligence 5)Image Recognition.

Explain unicode in java? Java uses the Unicode character set. It is a two-byte character code set which has characters representing almost overall characters in almost all huma