mount as loop
Closed this issue · 2 comments
yhoogstrate commented
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?
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/
check code of aufs
yhoogstrate commented
- Writing a kernel module requires re-license to GPLv2
- Requires code to be ported to plain C
yhoogstrate commented
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.