lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] replace SYSV shared memory with shm filesystem
From
Date
Andi Kleen <ak@muc.de> writes:

> On Mon, Jan 10, 2000 at 01:20:40PM +0100, Christoph Rohland wrote:
> > Hi folks,
> >
> > This patch implements a minimal filesystem for shared memory. It
> > replaces/reuses the existing SYSV shm code so you now have to mount
> > the fs to be able to use SYSV SHM. But in turn we now have everything
> > in place to implement posix shm. This also obsoletes vm_private_data
> > in vm_area_struct.
>
> I planed to map the Unix Sockets abstract name space to a file system
> for some time now. Because it would be silly to write another file
> system just for that rather obscure feature, would it be possible
> to use a subdirectory in your new shm filesystem? I haven't looked
> at the code at all yet, and don't know if it can even deal with
> directories and special devices. Do you have objections to such
> a direction?

In the current state this is not possible. The shm fs does not support
directories and only regular files (which you can only mmap, no
read/write support).

But we could later extend the fs to support directories and special
files. The Unix Sockets could probably also use the same mechanisms
for locating the special fs like SYSV ipc does.

With these changes we also should then be able to mount the fs several
times. So we also get the chroot case fixed.

Greetings
Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:1.443 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site