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" intoyour PFS file
.get myfile Extract file "myfile" from your PFS file and copy it to the current Windows (or Unix/Linux)
[url removed, login to view] 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 [url removed, login to view] can provide those commands through command line interface ONLY (No GUI will be accepted).
Limits: [url removed, login to view] 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., [url removed, login to view] (in Windows) or shell interface (in Unix/Linux). When PFS is executed, it will show the prompt as:C:\> [url removed, login to view] PFS> open pfs
[url removed, login to view] are a maximum of 20 bytes. And, file extension is optional like Unix/Linux.
[url removed, login to view] directory need handle only Name, Size, Time and Date. For example, PFS> dir [url removed, login to view] 128 bytes 12:30 PM September 2 [url removed, login to view] 512 bytes 11:00 AM November 11 [url removed, login to view] 1k bytes 08:52 PM September 1 . . .
[url removed, login to view] 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".
[url removed, login to view] file system should use Contiguous Allocation for an allocation scheme where “disk block” size is 256 bytes.
[url removed, login to view] 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).
[url removed, login to view] 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.
[url removed, login to view] 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.
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.
4 freelancer đang chào giá trung bình $72 cho công việc này
I'm mohammed Furqan I'm full time freelancer Relevant Skills and Experience I've back end developer and front end developer skills 2 years experience Proposed Milestones $25 USD - .