Implement a pfs with contiguous allocation method

Assignment Help Operating System
Reference no: EM131744109

Operating Systems Project Assignment: A Portable File System using Contiguous Allocation Method for GCP VM

Objective:

1. Practical experience with the problems of file systems.

2. Experience with the Windows or Unix/Linux operating system.

3. Keep the definition simple. Don't read things into the problem that aren't there.

These will be individual projects. For Project 2 you will use any operating system under Google Cloud Platform (GCP) VM. You may write the program in any language that is supported under any Integrated Development Environment (IDE) that runs on your selected OS on VM. Keep in mind that more help may be available to you in some languages than in others. Furthermore, available controls, etc. may make some of these tasks easier in one language than in another.

Problem Statement:

Implement a Portable File System (PFS) with Contiguous Allocation Method, which can perform "Allocate a file", and "Move files from the Windows file system into your file." You should have your own directory structure, allocation table, etc. inside your file.

Move files back out of your file to the Windows file system or Linux/Unix file system. When your program is running it should somehow accept the following commands:

open   PFSfile                  Allocate a new 10 KByte "PFS" file if it does not already exist. If it does exist, begin using it for further commands.
put     myfile                   Copy the Windows (or Unix/Linux) file "myfile" into your PFS file.
get     myfile                   Extract file "myfile" from your PFS file and copy it to the current Windows (or Unix/Linux) directory.
rm      myfile                   Delete "myfile" from your PFS file.
dir                                 List the files in your PFS file.
putr    myfile "Remarks"   Append remarks to the directory entry for myfile in your PFS file.
kill       PFSfile                 Delete the PFSfile from the Windows file system.
quit                               Exit PFS.

You can provide those commands through command line interface ONLY (No GUI will be accepted).

Limits:

1. PFS is NOT a memory based file system, but based on the existing file system on your OS, such as Windows or Linux/Unix.

2. Command-Line Interface (CLI) Only, i.e., cmd.exe (in Windows) or shell interface (in Unix/Linux). When PFS is executed, it will show the prompt as:

C:\> pfs.exe PFS> open pfs

3. Filenames are a maximum of 20 bytes. And, file extension is optional like Unix/Linux.

4. The directory need handle only Name, Size, Time and Date. For example,

PFS> dir

Test1.txt

128 bytes

12:30 PM

September 2

Test2.txt

512 bytes

11:00 AM

November 11

Lee.exe
. . .

1k bytes

08:52 PM

September 1

5. If the original PFS file fills up then you should create a new PFS "volume" with the same name but a different suffix - e.g., pfs.1, pfs.2, etc., each the same size as the first "volume".

6. Your file system should use Contiguous Allocation for an allocation scheme where "disk block" size is 256 bytes.

7. In your files system, each file has one File Control Block (FCB) that includes file name, file size, create time, create date, starting block ID, ending block ID and more (if needed).

8. Your file system should consist of two main parts, i) Directory Structure and ii) Data Blocks. Therefore, you need to define the directory data structure that includes File Control Block (FCB) for each file.

9. In addition, your files system should be able to manage free blocks. You can use any techniques that you learned in the classroom, such as bit map (vector) or linked free space management. Free block management should be part of directory structure.

10. You should handle unusual conditions such as trying to put a file into the PFS when a file with that name is already there, file too large to fit into one "volume", etc.

If you need to make assumptions, do so. Make a "reasonable" choice & include it in the write-up. Reasonable means that you can explain the logic behind your choice. These problems change each semester and it is difficult to imagine every question that might come up. When in doubt, ask to Professor Lee or the GA.

Write-up

You should submit a write-up as well as your program. Your write-up should include any known bugs, limitations, and assumptions in your program. This write-up should be in text-format and titled as 'README'. It should be submitted along with your code. GA will use the 'README' file to compile (or install) and run your program. If the GA has trouble with your program then he will contact you to makeup it.

Reference no: EM131744109

Questions Cloud

Organizations sustainable social responsibilities in oman : Write an introductory paragraph citing the brief overview of the company and objectives of the assignment - Provide a list of references that is reflected
What is the variable overhead spending variance : Company uses standard costing. What is the variable overhead spending variance? What is the variable overhead efficiency variance
Discuss hall when he sees a crow crowing at the caged tiger : Shadow is walking down the hall when he sees a crow crowing at the caged tiger that they have in the dungeon
How a new start-up retailer would use these features : Describe how this new retailer could use the information over time to spot trends.how a new start-up retailer would use these features to engage.
Implement a pfs with contiguous allocation method : Implement a Portable File System (PFS) with Contiguous Allocation Method, which can perform "Allocate a file", and "Move files from the Windows file system into
Discuss the author is saying by the statement : What do you believe the author is saying by the statement, "To miss paintings, sculptures, and photographs is to miss a lot
What control weaknesses are apparent : A branch office Insurance Company consists of a branch manager and 5 clerical assistants. What control weaknesses are apparent
Record any year-end adjustments required : On July 31, 2015 Marquis Inc. purchased 7%, $150,000, 10-year bonds. Record any year-end adjustments required
Negotiating the price of the sorbet machine : National Restaurant Supply, Inc., sells restaurant equipment and supplies throughout most of the United States. Management is considering adding a machine.

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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