A simple filesystem to understand things.

This is a Work In Progress. Do not use this yet.

The source files are licensed under Creative Commons Zero License.
More information at:	http://creativecommons.org/publicdomain/zero/1.0/
Full license text at:	http://creativecommons.org/publicdomain/zero/1.0/legalcode

To compile:
------------
install linux kernel sources and run make from the checkedout directory.

To test:
---------

One-time-activity:

linux-okb0:/home/psankar/src/simplefs > dd bs=1M count=100 if=/dev/zero of=image
linux-okb0:/home/psankar/src/simplefs > mkdir mount

Repeat everytime after making changes to the source:

linux-okb0:/home/psankar/src/simplefs > make
linux-okb0:/home/psankar/src/simplefs > su - ; # switch to root user if not already, or use sudo
linux-okb0:/home/psankar/src/simplefs # dmesg
linux-okb0:/home/psankar/src/simplefs # insmod simplefs.ko
linux-okb0:/home/psankar/src/simplefs # dmesg
[ 7467.426112] Sucessfully registered simplefs
linux-okb0:/home/psankar/src/simplefs # mount -o loop -t simplefs image /home/psankar/src/simplefs/mount/
linux-okb0:/home/psankar/src/simplefs # dmesg
[ 7467.426112] Sucessfully registered simplefs
[ 7478.223432] simplefs is succesfully mounted on [/dev/loop1]
linux-okb0:/home/psankar/src/simplefs # umount /home/psankar/src/simplefs/mount/
linux-okb0:/home/psankar/src/simplefs # dmesg
[ 7467.426112] Sucessfully registered simplefs
[ 7478.223432] simplefs is succesfully mounted on [/dev/loop1]
[ 7498.889439] simplefs superblock is destroyed. Unmount succesful.
linux-okb0:/home/psankar/src/simplefs # rmmod simplefs.ko
linux-okb0:/home/psankar/src/simplefs # dmesg
[ 7467.426112] Sucessfully registered simplefs
[ 7478.223432] simplefs is succesfully mounted on [/dev/loop1]
[ 7498.889439] simplefs superblock is destroyed. Unmount succesful.
[ 7506.906067] Sucessfully unregistered simplefs
linux-okb0:/home/psankar/src/simplefs #
Description
A simple, kernel-space, on-disk filesystem from the scratch
Readme 158 KiB
Languages
C 92.7%
Shell 6.5%
Makefile 0.8%