This assignment makes use of two files contained in this zip file. For this assignment you are to write a program that "unpacks" and displays the File Allocation Table (FAT) on a floppy disk so that the FAT can be more easily understood and manipulated. One of the points of this assignment is to emphasize why you want the operating system to provide "device abstractions" (because accessing a floppy disk at this low a level is not all that easy) and to also give you an idea of how an operating system can maintain a file system on a disk.
This assignment will use your
You are to write implementations for the following three functions, which are described in comments in the file BOOL fatRead(HANDLE theDisk, unsigned char *buffer); void unpackFAT(unsigned char *buffer, int* unpackedFAT); int countObjects(int* unpackedFAT);Your definitions of the three functions must work with the driver program floppyFAT.c which is also in the above zip file (you do not need to make any changes in the file floppyFAT.c ). Make sure that you error check all of the Win32 function calls that you make.
Notice that the third function in
When you have this program done, experiment with it. Format a floppy and then look at its FAT. Compare the display of the FAT given by
Turn in a zip file containing your version of the This assignment is due Monday, April 25. In your program you will need to make use of the following C operators.
|