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

Alexander Viro (viro@math.psu.edu)
Sat, 1 Jul 2000 12:04:36 -0400 (EDT)


On Fri, 30 Jun 2000, H. Peter Anvin wrote:

> Erik Andersen wrote:
> >
> > Sigh. and NFS is also a nodev fs. So with the kernel as it currently
> > stands, it is impossible to hide internal-use-only filesystems.
> >
> > I suppose the only way to hide them is to have the kernel somehow
> > flag internal-use-only filesystems with some kind of magic marker
> > that will allow them to be filtered out in get_filesystem_info().
> >
> > I just tried to find where the internal-use-only filesystems are
> > being mounted but I couldn't find it. Any ideas?
> >
>
> What I don't understand is where the notion of these filesystems being
> hung of / comes from...

Try to trace the path from their roots to absolute root(s)... They simply
should not be in the output - that's a debugging stuff and I have no
problems with removing it from /proc/mounts. No heuristics needed - we
can pass NULL as dev_name in kern_mount() and check for NULL ->mnt_devname
in get_filesystem_info(). I'll do that as soon as threading patches will
be over (hopefully RSN - they went to Linus).

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