Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pseudo filesystems on *nix

I need some opinions pointers on creating pseudo-filesystems for linux/*nix systems.

Firstly when I say pseudo-filesystem I mean something like /proc where the structure within does not represent actual files on disks or such but the state of the kernel. I would like to try something similar as an interface to an application.

As an example you could say, mount a ftp url to your filesystem and your browser app could then allow you to interact with the remote system doing ls et al on it and translating the standard filesystem requests into ftp ones.

So the first question is: how does one go about doing that? I have read a bit about it and it looks like you need to implement a new kernel module. If possible I would like to avoid that - my thinking being that someone may have already provided a tool for doing this sort of thing and provided the module to assist already.

My second question is: does anyone have a good list of examples of applications/services/whatever using this sort of technique to provide a filesystem based interface.

Lastly if anyone has any opinions on why this might be a good/bad idea to do such a thing on a generic level I would like to hear it.

like image 515
cyborg Avatar asked Jan 17 '10 01:01

cyborg


1 Answers

A userspace filesystem via fuse would probably be your best way to go.

like image 107
Justin Smith Avatar answered Nov 11 '22 16:11

Justin Smith