I've used FUSE for something similar.
There are sample "drivers" in easily-modified python that are fast enough for casual use.