* virtual filesystem with data managed in userspace
@ 2001-12-04 21:40 Roland Bauerschmidt
2001-12-04 21:57 ` Mike Castle
2001-12-04 22:00 ` Ragnar Kjørstad
0 siblings, 2 replies; 5+ messages in thread
From: Roland Bauerschmidt @ 2001-12-04 21:40 UTC (permalink / raw)
To: linux-kernel
Hi,
for a science project I'm thinking about writing a virtual filesystem
driver that provides access to data that is managed in userspace. I'm
quite new to Kernel hacking, so I'd be glad if someone could provide
some tips about the design, especially the data exchange between kernel-
and userspace. The scenario looks like this:
/foo is type my_virtual_fs_to_be_written
If somebody reads let's say /foo/bar, the kernel module communicates in
some way with a daemon (or something) in userspace that provides the
nessary information (data) to the kernel module which then uses it
to return the necessary information to the application that tries to
read data.
Do you think this concept is workable at all? What I am most worried
about is the communication between user and kernel space since
eventually quite an amount of information (file contents) would need be
exchanged. High performance is not really critical here, though. How
could this be done best? I thought about a character device (FIFO)
through which kernel module and userspace daemon would exchange
commands and data in a defined way, similar to some network protocol
standard like HTTP.
It'd be very happy about any suggestions or tips,
Roland
--
Roland Bauerschmidt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtual filesystem with data managed in userspace
2001-12-04 21:40 virtual filesystem with data managed in userspace Roland Bauerschmidt
@ 2001-12-04 21:57 ` Mike Castle
2001-12-04 22:00 ` Ragnar Kjørstad
1 sibling, 0 replies; 5+ messages in thread
From: Mike Castle @ 2001-12-04 21:57 UTC (permalink / raw)
To: linux-kernel; +Cc: Roland Bauerschmidt
On Tue, Dec 04, 2001 at 10:40:26PM +0100, Roland Bauerschmidt wrote:
> Do you think this concept is workable at all? What I am most worried
Workable, and done. Several times over.
The old userfs stuff, for instance.
Any number of NFSD and the ilk (the Berkeley automount daemon, amd, for
instance, could do this kind of stuff it wanted to).
I believe CODA plays that game as well (at least to some extent).
mrc
--
Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: virtual filesystem with data managed in userspace
2001-12-04 21:40 virtual filesystem with data managed in userspace Roland Bauerschmidt
2001-12-04 21:57 ` Mike Castle
@ 2001-12-04 22:00 ` Ragnar Kjørstad
2001-12-04 23:05 ` Adam Keys
2001-12-05 13:50 ` Roland Bauerschmidt
1 sibling, 2 replies; 5+ messages in thread
From: Ragnar Kjørstad @ 2001-12-04 22:00 UTC (permalink / raw)
To: Roland Bauerschmidt, linux-kernel
On Tue, Dec 04, 2001 at 10:40:26PM +0100, Roland Bauerschmidt wrote:
> Hi,
>
> for a science project I'm thinking about writing a virtual filesystem
> driver that provides access to data that is managed in userspace. I'm
> quite new to Kernel hacking, so I'd be glad if someone could provide
> some tips about the design, especially the data exchange between kernel-
> and userspace.
See http://sourceforge.net/projects/avf/
--
Ragnar Kjørstad
Big Storage
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtual filesystem with data managed in userspace
2001-12-04 22:00 ` Ragnar Kjørstad
@ 2001-12-04 23:05 ` Adam Keys
2001-12-05 13:50 ` Roland Bauerschmidt
1 sibling, 0 replies; 5+ messages in thread
From: Adam Keys @ 2001-12-04 23:05 UTC (permalink / raw)
To: linux-kernel
On December 04, 2001 04:00, Ragnar Kjørstad wrote:
> On Tue, Dec 04, 2001 at 10:40:26PM +0100, Roland Bauerschmidt wrote:
> > Hi,
> >
> > for a science project I'm thinking about writing a virtual filesystem
> > driver that provides access to data that is managed in userspace. I'm
> > quite new to Kernel hacking, so I'd be glad if someone could provide
> > some tips about the design, especially the data exchange between kernel-
> > and userspace.
>
> See http://sourceforge.net/projects/avf/
Maybe we should add this to the lkml FAQ under a heading "Things you think
are probably crazy but really aren't", or possibly "Fancy microkernel type
stuff" :)
--
akk~
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: virtual filesystem with data managed in userspace
2001-12-04 22:00 ` Ragnar Kjørstad
2001-12-04 23:05 ` Adam Keys
@ 2001-12-05 13:50 ` Roland Bauerschmidt
1 sibling, 0 replies; 5+ messages in thread
From: Roland Bauerschmidt @ 2001-12-05 13:50 UTC (permalink / raw)
To: linux-kernel
Ragnar Kjørstad wrote:
> See http://sourceforge.net/projects/avf/
Thanks! FUSE looks pretty much like what I want. I'll have a look at it.
Roland
--
Roland Bauerschmidt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-05 13:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-04 21:40 virtual filesystem with data managed in userspace Roland Bauerschmidt
2001-12-04 21:57 ` Mike Castle
2001-12-04 22:00 ` Ragnar Kjørstad
2001-12-04 23:05 ` Adam Keys
2001-12-05 13:50 ` Roland Bauerschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox