Code Monkey home page Code Monkey logo

simplesecondaryfilesystem's Introduction

项目介绍

本项目为同济大学操作系统课程设计,实现了一个简单的文件系统。详细设计文档请参考实验报告


用户使用说明

本项目使用CMake来构建和测试FileSystem,用户需要按照以下说明操作:

前置要求

  • 确保已安装CMake(至少版本3.20)和合适的C++编译器。本项目使用C++17标准。
  • 该项目针对GNU C++和Clang编译器进行了特定的优化设置,也支持MSVC编译器。对于其他编译器,会显示一条消息提示可能未能正确设置优化标志。
  • Google Test框架已作为子目录集成,用于执行单元测试。
  • 磁盘空间应不少于1G。
  • 本项目测试环境为 Linux/macOS,未在Windows环境下测试。

构建项目

  1. 打开命令行或终端。

  2. 导航到项目根目录。

  3. 创建一个构建目录并进入:

    mkdir build 
    cd build
  4. 运行CMake来生成构建系统:

    cmake ..
  5. 构建项目:

    make

这将会构建主项目FileSystem以及测试项目Tests

运行应用

  • 在构建目录中,运行生成的FileSystem可执行文件来启动程序,命令为

    ./FileSystem
  • 第一次成功启动后,输入 format 会自动在当前文件夹创建一个image.img文件。

  • 进入命令行界面,输入 help 可以查看所有支持命令的使用方法。

运行测试

  • 为了运行所有测试,可以使用CTest,一个CMake的测试驱动程序。在构建目录中,运行命令ctest来执行所有配置的测试。
  • 也可以直接运行Tests可执行文件来进行单元测试。这些测试验证了文件系统的不同组件是否按预期工作。

simplesecondaryfilesystem's People

Contributors

cishoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.