Important - Writing The Super-Block
If we want to avoid a busy-loop, we must implement write-super:
- Adding a new inode will dirty the super-block...
- ... so the VFS (via the update daemon) will try to write it to disk...
- ... in a loop of updating all dirty super-blocks.
- The write-super function needs to mark the super-block as non-dirty, or
else the update daemon will keep trying to write it - causing the system
to get stuck.
So, here is the mkdir-able STAMFS code.
Originally written by
guy keren