Working on the Virtual File System

News by khorben on 18/12/2009 23:02:20
There were no news about it yet, but a number of improvements were committed to the AppInterface code [1], so essential to the concept of DeforaOS itself (which still have to be documented). In any case, the VFS project was finally worth creating its own project page [2].
Among the improvements:
  • dynamic AppInterface definitions (AppBroker [3] from libSystem)
  • support for returning strings in parameters (libSystem)
  • support for more VFS calls, including opendir(), readdir(), closedir(), dirfd() and access() (VFS)
  • wrapping the regular libc calls through LD_PRELOAD for remote file access (libvfs.so [4] from VFS)
  • binding locally or allowing remote connections with a command-line argument (VFS)
It is now mostly missing the addition of the stat() family of calls in order to be fully functional. This could be done with a hack first, passing the structure through a Buffer. There will then be lots of possibilities, including:
  • mounting volumes in userland,
  • on the fly encryption/decryption,
  • accessing different remote hosts at the same time...

It is probably worth a release in the current state though; it can be safely expected.

[1] http://www.defora.org/os/project/browse/27?file=/src/appinterface.c,v
[2] http://www.defora.org/os/project/display/3304/VFS
[3] http://www.defora.org/os/project/browse/27?file=/tools/appbroker.c,v
[4] http://www.defora.org/os/project/browse/3304?file=/tools/libvfs.c,v