You are not logged in.
Hi,
I have a file which acts as a container, it contains (encrypted) files & directories and I have an API for adding stuff to this container, extracting stuff and deleting stuff.
How 'complex' would it be to wrap a virtual file system around this so I could mount the container as a device under linux? I assume I would need to write a kernel driver (ouch), but ideally i would like to be able to mount it with the mount command, then have my driver intercept I/O operations and map them to my somewhat simplistic API.
Is this possible, or is it very hard to pull of?
Thanks
Offline
with fuse you can do that i think.
but I take it your thing is not posix compliant? aren't there enough fs'es already you could use instead? or do you mostly want to learn? in that case it's cool
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
If you want to do the kernel module thing, start with the ramfs module, as its relatively simple and doesn't have much filesystem specific stuff in it, so its easy to see where you need to 'hook' your commands into it. I had to work with something like this for some research into versioned filesystems. Its actually not that hard if you know C.
Dusty
Offline