Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M9531039

Have any Question?


Related Questions in Java

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Solving 2nd degree equationsbull write the following java

Solving 2nd degree equations • Write the following Java methods • boolean real-sols(double a, double b, double c): it returns true if the 2nd degree equation ax2 + bx + c has real solutions • double solution1(double a, d ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As