讲解:FAT32、File System、c/c++、c/c++Matlab| Statisti

Programming Assignment 3: FAT32 File SystemDue: November 7 2018 5:30PMDescriptionThis assignment will familiarize you with the FAT32 file system. You will become familiar withfile allocation tables, endieness, as well as file access. You will implement a user space shellapplication that is capable of interpreting a FAT32 file system image. The utility must not corruptthe file system image and should be robust. No existing kernel code or any other FAT 32 utilitycode may be used in your program.You may complete this assignment in groups of two or by yourself. If you wish to be in a groupof two the group leader must email me your group member’s names by October 31, 2018. Youremail must have the subject line “3320 [Section #] Project 3 Group” where section number is002 or 003. ( 003 is the 5:30pm class, 002 is 7:00pm )The code you submit for this assignment will be verified against a database consisting of kernelsource, github code, stackoverflow, previous student’s submissions and other internet resources.Code that is not 100% your own code will result in a grade of 0 and referral to the Office ofStudent Conduct.You can find a FAT32 file image, fat32.img, on blackboard under Assignment 3. Also underAssignment 3 you can find the fat 32 specification, fatspec.pdf. You will need this specificationto interpret the file system image correctly.Program RequirementsYour program shall be named mfs.c and shall be implemented in C or C++. You shall not use thesystem calls system() or any of the exec family of system calls.Your program shall print out a prompt of mfs> when it is ready to accept input.The following commands shall be supported:open This command shall open a fat32 image. Filenames of fat32 images shall not contain spaces andshall be limited to 100 characters. If the file is not found your program shall output: “Error: File system image not found.”. If a filesystem is already opened then your program shall output: “Error: File system image alreadyopen.”.closeThis command shall close the fat32 image. If the file system is not currently open your programshall out代写FAT32留学生作业、代做File System作业、代做c/c++程序语言作业、c/c++语言作业代写 调试Matput: “Error: File system not open.” Any command issued after a close, except foropen, shall result in “Error: File system image must be opened first.”infoThis command shall print out information about the file system in both hexadecimal and base 10: BPB_BytesPerSec BPB_SecPerClus BPB_RsvdSecCnt BPB_NumFATS BPB_FATSz32stat or This command shall print the attributes and starting cluster number of the file or directory name.If the parameter is a directory name then the size shall be 0. If the file or directory does not existthen your program shall output “Error: File not found”.get This command shall retrieve the file from the FAT 32 image and place it in your current workingdirectory. If the file or directory does not exist then your program shall output “Error: File notfound”.cd This command shall change the current working directory to the given directory. Your programshall support relative paths, e.g cd ../name and absolute paths. lsLists the directory contents. Your program shall support listing “.” and “..” . Your program shallnot list deleted files or system volume names.read Reads from the given file at the position, in bytes, specified by the position parameter and outputthe number of bytes specified.volumePrints the volume name of the file system image. If there is a volume name, it will be found inthe reserved section. If there is no volume name, your program shall output “Error: volumename not found.”GradingThe assignment will be graded out of 100 points. Compiler warnings are there to tell yousomething is not correct. Pay attention to them and you will save yourself a lot of late nightsdebugging code. Code that does not compile will earn 0.Your code will be compiled and graded on omega.uta.edu . Your code must compile as:g++ mfs.c -o mfsCategory Pointsopen 5close 5info 10stat 10cd 15ls 15get 15read 10volume 10No extra debug or extraneous output 5How to submit homework1. Submit your file mfs.c on blackboard. 转自:http://www.7daixie.com/2019041121959641.html

你可能感兴趣的:(讲解:FAT32、File System、c/c++、c/c++Matlab| Statisti)