This project is a simplified version of the FAT file system. It operates on data arrays and not the real memory of the system. The goal is to create a mockup of FAT, implementing the ideas of FAT to understand them better.
Milestones are defined to track progress.
Preparing the systemImplementing files- Implementing directories
Unit tests will be implemented using the GTest framework.
Unittests will not be implemented
Using the following main function the virtual memory should be initialised to ASCII '\0'. Followed by inserting the FAT and root directory into the table.
#include "filesys.h"
int main(int argv, char* argc[]){
format();
return 0;
}Additionally the references for the parent directory "../" and the directory itself "./" are inserted in the root directory. The parent directory of root is a special case since it is the top most level of directories. The reference still exists in UNIX file systems, but it points to the root directory itself. This approach is followed here as well.
To make live easier some utility functions were created.
copyFAT() //copies the FAT into the virtual memory
printBlock(int blockIndex) //print the data in a block of memoryThese were created because the functionalities were probably going to be needed often in functions implemented later or for testing.