How rahmaaref/fatfilesystemsimulator works
This is a C# FAT-style file-system simulator. The principal workflow starts with a user issuing shell commands, which route file operations through FileManager and directory operations through DirectoryManager; those managers use FAT cluster chains and VirtualDisk to persist data. Directory entries encode file and directory metadata, while FSConstants defines the layout. Program initializes the disk and assembles the runtime. The README documents superblock management and FAT persistence; excerpts do not show their full startup or shutdown wiring.
Main entry points: VirtualDisk.cs Virtual disk · Shell.cs Command shell · Directory.cs Directory manager · FatTableManager.cs FAT manager
Components 11
Command interface
- Runtime startup
Program.cs - Command shell
Shell.cs
File and directory management
- File manager
FileManager.cs - Directory manager
Directory.cs - Directory entries
DirectoryEntry.cs
Filesystem layout
- FAT manager
FatTableManager.cs - Filesystem constants
FSConstants.cs - Superblock manager
SuperblockManager.cs
Disk storage
- Virtual disk
VirtualDisk.cs - Disk image
Other components
- User
Connections 17
- User → Command shell: enters commands
README.md - Runtime startup → Virtual disk: initializes
Program.cs - Runtime startup → Command shell: starts
Program.cs - Command shell → File manager: dispatches file commands
Shell.cs - Command shell → Directory manager: calls directory operations
Shell.cs - Command shell → FAT manager: flushes FAT
Shell.cs - Command shell → Virtual disk: writes directory data
Shell.cs - File manager → Directory manager: looks up and updates entries
FileManager.cs - File manager → FAT manager: allocates and follows chains
FileManager.cs - File manager → Virtual disk: reads and writes clusters
FileManager.cs - Directory manager → FAT manager: follows and allocates chains
Directory.cs - Directory manager → Virtual disk: reads and writes clusters
Directory.cs - Directory manager → Directory entries: serializes entries
Directory.cs - FAT manager → Virtual disk: loads and flushes FAT
FatTableManager.cs - FAT manager → Filesystem constants: uses layout values
FatTableManager.cs - Superblock manager → Virtual disk: reads and writes cluster
SuperblockManager.cs - Virtual disk → Disk image: persists binary data
README.md