Search code examples
databaselinuxoperating-systemfilesystemsbsd

How would you build a database filesystem (DBFS)?


A database file system is a file system that is a database instead of a hierarchy. Not too complex an idea initially but I thought I'd ask if anyone has thought about how they might do something like this? What are the issues that a simple plan is likely to miss? My first guess at an implementation would be something like a filesystem to for a Linux platform (probably atop an existing file system) but I really don't know much about how that would be started. Its a passing thought that I doubt I'd ever follow through on but I'm hoping to at least satisfy my curiosity.


Solution

  • The easiest way would be to build it using fuse, with a database back-end.

    A more difficult thing to do is to have it as a kernel module (VFS).

    On Windows, you could use IFS.