Code Monkey home page Code Monkey logo

file-system-fuse's Introduction

File System Implementation using FUSE

Packages to download

  • sudo apt-get install libfuse-dev
  • sudo apt-get install fuse fuse3
  • sudo apt-get install make automake autoconf

How to mount external partition for fuse

  • Add the block device name in disk_layer.h
  • sudo su to login as root user
  • Open two terminals and create a directory to intercept sys calls through fuse in that area (this is to unmount if already mounted) - fusermount -u mpoint
  • In one of the terminals launch the fuse layer instance through - make init and ./init -f mpoint
  • In the other terminal, cd into the mpoint directory and anything you do in through that dir will be intercepted by fuse
  • Note: mount directory should be empty before launching fuse
  • You can copy the test cases using cp into the mpoint e.g. cp -r ../../File-System-Fuse/test/fuse .

Tests

Unit Tests

  • cd File-System-Fuse
  • make test

LRU Cache layer

  • ./obj/lru_cache_test

Disk layer

  • ./obj/disk_test

Block layer

  • ./obj/block_test

File layer

  • ./obj/file_test

Fuse Layer tests that invoke FS calls

  • cd PATH/TO/test/fuse

  • make test

First tests the open_create_write_test.c This will create multiple files within the directory basic_api_test_files.

  • ./obj/open_create_write_test

Then run tests for lseek operation

  • ./obj/lseek_read_write_test

To run tests for unlink

  • ./obj/unlink_test

Testing large and extra large files.

  • ./obj/large_file_test

  • ./obj/extra_large_file_test

file-system-fuse's People

Contributors

harshamiryala avatar taanya1996 avatar harsha-miryala avatar

Stargazers

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