# lightfs **Repository Path**: clouddea/lightfs ## Basic Information - **Project Name**: lightfs - **Description**: 一个轻量级的文件系统。支持高达2G文件大小和快速的读写速度。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-03-14 - **Last Updated**: 2024-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简介 此文件系统命名为 LightFS,模仿自 ext2。其优点是实现简单,可以并发使用,具有简单而强 大的特点。一切源自本人大二《操作系统》的课程设计。后续考虑添加新功能以及优化。设计文档参考: [设计文档](./man/doc.pdf) # 编译与运行 ## 运行环境 系统版本:deepin 15.7 基于Debian 7.3.0-19 Linux内核版本 4.15.0 g++版本 7.3.0 make版本 4.2.1 libfuse版本 2.9 `apt install libfuse-dev` ## 如何运行 ```shell make run file=server #测试客户端 make run file=client #测试服务端 ``` ## 如何编译服务端 在makefile文件所在的目录下 ```shell make clean make file=server ``` ## 如何编译客户端 在makefile文件所在的目录下 ```shell make clean make file=client ``` ## 如何运行服务端 在bin目录下 ```shell ./server.bin ``` ## 如何运行客户端 在bin目录下 ```shell ./client.bin ``` # 基础指令 ```shell ls [.|..|/|subdir] cd [.|..|/|subdir] pwd import from to # 从磁盘复制到虚拟磁盘 export from to # 从虚拟磁盘复制到磁盘 touch file rm file mkdir dir rmdir dir cat [-r] file exit create disk size open disk df ``` 注意:目前只支持相对路径