Re: [patch] Remove the magic entries from /proc/mounts

H. Peter Anvin (hpa@transmeta.com)
Fri, 30 Jun 2000 17:07:39 -0700


Erik Andersen wrote:
>
> For shm, I think imitating this behavior is the way to go. Since it is already
> a FS_SINGLE that gets automounted anyways, I think it should also be flagged as
> FS_NOMOUNT and its mount pt set to something nonsensical such as "shm:" (to follow
> the pattern of pipefs). See attached patch.

WRONG. shmfs *should be mounted*.

> This then leaves proc and devpts with goofy virtual mounts onto /.
> I have to wonder, why in the heck are they automounting themselves?
> Does the kernel somehow use these internally? I can't imagine why.

Yes, that way the kernel can mess with the data structures
unconditionally and don't need to worry about suddenly creating them
when the user mounts the filesystem.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

- 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/