A Basic Operating System - FileSystem
This Basic Operating System is a C++ project that was developed while attending CSUSB. In this project, the operating system was developed with an emphasis on the filesystem of the machine. This project consisted of three components: disk, file system, and shell.
From a main driver program, all three segments are initialized. Through this process, a disk represented by a text file is created (if not yet completed) or loaded (if previously established). If the disk loaded, then the contents of the disk are also loaded into βramβ (vectors and arrays in the program). Otherwise, the filesystem class formats the disk according to its specifications. From there, the shell class takes a variety of basic command and executed them, modifying the disk if necessary.
Disk
The Disk class handles any operation that modifies the disk file. In other words, any read or write operation. Since the disk is formatted in blocks, this class reads and writes one block at a time.
File System
The File System class preforms any file manipulation tasks. This included reserving or deleting block associated with a file. Each file exists as a record in the File Allocation Table which is managed by the File System class.
Shell
The Shell is very simple compared to the other classes in the project. The sole job of this class is to take the basic commands form the terminal and execute them in the file system.