Scusate so che sono volgare e di malo posto... ma non so assolutamente nulla di C
Ho bisogno di effettuare questo task...
Qualcuno sa darmi una mano per favore...
Implement the function format() to create a structure for the virtual disk. Format has to create the FAT and the root directory. Write a test program containing the main() function, and call it “shell.c”.
Your test program shell.c should perform the following three actions:
- call format() to format the virtual disk
- transfer the following text into block 0: “CS3008 Operating Systems Assessment 2012”
- write the virtual disk to a file (call it “virtualdisk9_11”).
Use the unix command “hexdump” to see what the file contains: hexdump –C virtualdisk9_11.
In assessment2013.zip, you will find the file “virtualdisk” that shows a layout of the virtual disk as acceptable for CAS 9-11. You must demonstrate that your implementation produces a similar layout (your implementation may differ), with the FAT and entries within the FAT recognizable. It is expected that the hexdump only shows the information written back into the virtual disk and no other clutter. This requires that the virtual disk is properly initialized when formatted().