GithubHelp home page GithubHelp logo

shmanubhav / ext3-c-fusefs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 28 KB

A 1MB ext3 disk image written in C using the FUSE filesystem driver.

License: GNU General Public License v3.0

Makefile 2.59% C 78.14% Perl 19.27%

ext3-c-fusefs's Introduction

ext3 FS implemented using FUSE

Created a 1MB ext3 disk image filesystem using the FUSE filesystem driver and C.


Advantages:

  • No need to follow a linked list structure for writing/reading large files. We use inodes which stores the data block numbers as an array.
  • We can easily see how many inodes and data blocks are free by looking at the bitmap data structure. Constant time lookup.
  • Each inode should essentially be able to store data block numbers for 40KB on the first level.
  • With smaller files we have very fast data access.

Disadvantages:

  • As of right now we cannot store large files (>4KB).
  • No softlinks/hardlinks.
  • If a file is < 4KB it is allocated an entire 4KB page which causes fragmentation.
  • No directories have been implemented except the root directory.

Improvements to be made:

  • Add functionality for directories other than the root directory.
  • Implement soft links and hard links.
  • Allow to write files > 4KB.

Features Completed:

  • Able to create a file.
  • Able to write to a file.
  • Able to read from a file.
  • Able to delete files.
  • Able to rename a file.
  • Able to change permissions for a file.
  • Able to list all the files in a particular directory.
  • Able to change the date of access/modification of a file.
  • Super Block, Inode Bitmap, And Data Bitmap allow constant access to free/used blocks.
  • Support for metadata.

Still Missing:

  • Directories.
  • Hardlinks and softlinks.
  • Files > 4KB.

ext3-c-fusefs's People

Contributors

shmanubhav avatar

Stargazers

 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.