# LuoFS **Repository Path**: salvete/file-system ## Basic Information - **Project Name**: LuoFS - **Description**: DIY文件系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-01-31 - **Last Updated**: 2023-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DIY文件系统(参考xv6的文件系统) 文件系统的层次结构为(从高到低): 1. 文件描述符层 2. 文件路径层 3. 目录层 4. Inode层 5. 缓存层 6. 磁盘层 磁盘的空间分配为: ![image-20230131221056750](C:\Users\lenovo\AppData\Roaming\Typora\typora-user-images\image-20230131221056750.png) 1. boot块:存放启动信息 2. super块:存放磁盘的全局信息,例如inodes块的起始位置 3. inodes块:存放inodes的信息 4. bit map块:存放磁盘的使用信息 5. data块:磁盘上真正存放信息的部分