Code Monkey home page Code Monkey logo

zramfs's Introduction

zramfs

zramfs is disk file system just for fun. then it have bugs. but to learn the kernel and vfs is good. Change from ramfs

I have a blockdev project https://github.com/gggao/sbull.git, for easy the block dev logic block size is 1k. and the zramfs make fs block size is 1k. But they can't must be the same, but if they don't equal may be occur some problem, some places in the code don't deal this and almont can deal this. I don't try this.

fs structure is very easy, see format.c gzafs_sb_info;


the first fs block is super block.|

inode bitmap |

data bitmap |

inode data |

data |

steps: 1.load the blockdev sbull, ./sbull_init.sh load 2.compile the format program [format.c], then format the bdev: ./a.out /dev/sbull0 3.compile zramfs by command make. then load zramfs by ./load.sh load, It do insmod and mount to the dir ramfs;

zramfs's People

Contributors

gggao avatar

Stargazers

 avatar

Watchers

 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.