4 ms·
"In the end, the only safe way to allow unprivileged mounts may be the filesystem in user space (FUSE) mechanism, which isolates the filesystem code into a sepa
by Animats 11y ago
"In the end, the only safe way to allow unprivileged mounts may be the filesystem in user space (FUSE) mechanism, which isolates the filesystem code into a separate user-space process."
Which is how QNX, the message-passing real-time OS, does it. All file systems are in user space. ZIP file systems were added easily, for example. QNX has a process which starts at boot time to manage pathname connections to "resource manager" programs. Programs can register for a portion of the pathname space.
Pathnames are a level of abstraction below file systems.
Linux keeps adding the ability to put more in user space, with interprocess message passing, drivers in user space, and file systems in user space. But the old in-kernel code for the same things never gets thrown out, and the bolted-on user space capabilities are slower than the kernel ones. Message passing support and CPU dispatching have to be tightly integrated for this to work fast, and because message passing is an afterthought in UNIX/Linux, it never is.