GithubHelp home page GithubHelp logo

vsfsd's Introduction

vsfsd - Very Simple File System (Demon)

A I-node based memory file system implementation. Implemented in C++.

Intro

The program organized a allocated memory as a file system to manage.

Providing following functions for external user.

  1. Init file system with given disk size and block size
  2. create/delete the file/directory
  3. read/write file in binary stream
  4. change pwd
  5. copy file to new path

Implemented detail

Disk layout

Disk: super_block | block_bitmap | inode_bitmap | inode_table | data area

super_block: magic number to specify vsfsd, and some statistic data to maintain the file system.

struct super_block{
    //Statistic INFO
    u32 inodes_count;
    u32 used_inode;
    u32 block_count;
    u32 used_block_count;
    u32 blockBitmapBlock;
    u32 iNodeBitmapBlock;
    u32 iNodeTableBlock;
    u32 dataBlock;
    u32 block_size;
    u32 magic;
};

block_bitmap: Use/Unused map for block inode_bitmap: Use/Unused map for inode inode_table : Inode data area data_area : blocks

Notice

  • Minimum addressable unit is byte.
  • All address are 32-bit.
  • Only level-1 indirect block is implemented

vsfsd's People

Contributors

szcnorya avatar

Stargazers

Eason Wang avatar  avatar

Watchers

James Cloos avatar  avatar  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.