yhoogstrate/fastafs

mount as loop

Closed this issue · 2 comments

The current implementation only uses fuse, running in user space.
Maybe there should be an alternative to mount as loop/loopback, similar to how ISO&squashfs files are mounted, running in kernel space?

https://askubuntu.com/a/26728

probably requires a losetup (lo setup) command/syscall
or requires a kernel module, quite similar to squashfs

https://github.com/plougher/squashfs-tools/blob/master/kernel/fs/squashfs/super.c
https://kukuruku.co/post/writing-a-file-system-in-linux-kernel/

#36

check code of aufs

  • Writing a kernel module requires re-license to GPLv2
  • Requires code to be ported to plain C

It can currently mount under root, even using /etc/fstab. Implementing it as such (c kernel module) requires a very deep understanding of everything to avoid issues that may cause severe security issues.