[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shared-Memory for the Hurd?
From: |
Farid Hajji |
Subject: |
Re: Shared-Memory for the Hurd? |
Date: |
Mon, 4 Dec 2000 04:30:30 +0100 |
> I don't know why Neal says libtrivfs doesn't fit the job, but I never tried
> to provide a treefs with libtrivfs. There is also libnetfs, which is also
> used by non-networked filesystems like usermux and hostmux, so maybe there
> is some value in it.
[snip]
> Sounds good. As I said, with libtreefs, you are reviving a code four or five
> years old. With libdiskfs, you are facing the omplexity of libstore and the
> paging interface...
Wow, libtreefs is being phased out? Good to know!
libnetfs is exactly the library I was looking for. It provides the
callbacks that are needed to write a regular fs-translator. nfs is
also a good template to get started... Good example code for handling
descriptor/port stuff is in hurd/init/init.c (at least that is what
I needed to understand it) and file_set_size() is the way to get
the shm-size request to shm-translator.
It seems like I have now all I need to write that shm-translator
and a simple shm*() library that uses it. A related task would be
to write a memfs-translator which uses virtual memory for a memory-
based filesystem a la tmpfs, but that is for later.
Thanks for your help!
-Farid.
--
Farid Hajji -- Unix Systems and Network Admin | Phone: +49-2131-67-555
Broicherdorfstr. 83, D-41564 Kaarst, Germany | farid.hajji@ob.kamp.net
- - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - -
Murphy's Law fails only when you try to demonstrate it, and thus succeeds.