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.

Answers


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


Need Your Help

How do I create 'remove tag' links with Acts_As_Taggable_On in Rails?

ruby-on-rails ruby associations tagging acts-as-taggable-on

I'm creating a simple project tagging application using the Act_As_Taggable_On gem.

jquery file upload with spring mvc : 400 bad request

java jquery spring-mvc file-upload asyncfileupload

I coded a file upload with SpringMVC, following the manual example (LINK) and it works fine.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.