Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
CSc 360: Operating Systems
1 Introduction
In this assignment, you will implement utilities that perform operations on a simple file system, FAT12, used by
MS-DOS.
1.1 Sample File Systems
You will be given a file system image: disk.IMA for self-testing, but your submission may be tested against other
disk images following the same specification.
You should get comfortable examining the raw, binary data in the file system images using the program xxd.
2 Requirements
2.1 Part I
In part I, you will write a program that displays information about the file system. In order to complete part I, you will need to understand the file system structure of MS-DOS, including FAT Partition Boot Sector, FAT File
Allocation Table, FAT Root Folder, FAT Folder Structure, and so on.
For example, your program for part I will be invoked as follows:
./diskinfo disk.IMA
Your output should include the following information:
OS Name:
Label of the disk:
Total size of the disk:
Free size of the disk:
==============
The number of files in the disk (including all files in the root directory and files in all subdirectories):
=============
Number of FAT copies: