The Wayback Machine - https://web.archive.org/web/20210120153919/https://github.com/ZhangShurong/simple-filesystem
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

HUST_fs

Author: HUST 2015 IS03 ChenWei

A filesystem driver for linux.

How to use this?

  1. Compile
    Install linux kernel sources (Linux 4.14) and run make from the checkedout directory.

  2. Test

$ make
$ dd bs=4096 count=100 if=/dev/zero of=image
$ ./mkfs ./image
$ sudo insmod HUST_fs.ko
$ sudo mount -o loop -t HUST_fs image ./test
$ sudo chmod 0777 ./test -R
$ cd test
$ cat file
$ echo "Hello World!" > file
$ cat file

Disk layout

Dummy block | Super block | bmap | imap |inode table | data block0 | data block1 | ... ...

You will see it clearly on mkfs.c

TODO

  • fix bug: vim e667
  • code refactoring

How to write a simple filesystem?

About

Experiment with writing a simple, kernel-space, on-disk filesystem.

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.