Re: [PATCH] Add pidfs filesystem

From: Alexey Gladkov
Date: Wed Feb 22 2017 - 14:48:48 EST


On Wed, Feb 22, 2017 at 06:48:03PM +0100, Oleg Nesterov wrote:
> On 02/22, Dmitry V. Levin wrote:
> >
> > On Tue, Feb 21, 2017 at 03:57:47PM +0100, Oleg Nesterov wrote:
> > >
> > > But perhaps we can use mnt_flags? For example, lets abuse MNT_NODEV, see
> > > the simple patch below. Not sure it is correct/complete, just to illustrate
> > > the idea.
>
> ...
>
> > I like the idea of using mnt_flags to turn procfs into pidfs, thus
> > avoiding yet another filesystem, but MNT_NODEV has a different meaning,
>
> Yes, yes, see "abuse MNT_NODEV" above. The patch just tries to illustrate
> the idea.

I think I can try to use subtype for this. In this case, it is still the same
procfs, but with the subtype:

mount -t proc.pidfs ...

--
Rgrds, legion