How psankar/simplefs works
Core Components
a. Filesystem Driver Layer
• Mount/Unmount Operations
• VFS (Virtual File System) Interface
b. File Operations Layer
• Create/Read/Write Operations
• Directory Operations
c. Storage Management Layer
• Block Management
• Inode Management
Top Level (User Space)
• System calls interface
Middle Level (Kernel Space)
• VFS Layer
• SimpleFS Driver
• File Operations
• Directory Operations
Bottom Level (Storage)
• Physical Layout
• Block Organization
• Inode Structure
Specific Elements to Include:
Data Structures
• Super Block (from super.h)
• Inode Structure
• Directory Entry Format
Operations Flow
• File Creation Path
• Directory Creation Path
• Read/Write Operations
• Mount/Unmount Sequence
• Blue: User space components
• Green: Kernel space components
• Orange: Storage components
• Gray: External interfaces
Important Relationships to Show:
Control Flow
• Error paths in red
Data Flow
• How data moves from user space to storage
• Buffer cache interactions
• Synchronization points
Special Considerations:
Limitations (mark these clearly)
• Single block file size limit
• Limited number of filesystem objects
• Basic locking scheme
Version-Specific Features
• Version 1.0 basic features
• Planned features for 2.0 (extents)
• Planned features for 3.0 (journaling)
• All symbols used
• Component types
• Version markers