From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933698AbdBVTsr (ORCPT ); Wed, 22 Feb 2017 14:48:47 -0500 Received: from mozilla-myt-1.haze.yandex.net ([77.88.23.115]:38132 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606AbdBVTsg (ORCPT ); Wed, 22 Feb 2017 14:48:36 -0500 Date: Wed, 22 Feb 2017 20:56:03 +0100 From: Alexey Gladkov To: Oleg Nesterov Cc: "Dmitry V. Levin" , Linux Kernel Mailing List , "Kirill A. Shutemov" , Vasiliy Kulikov , Al Viro , "Eric W. Biederman" , Pavel Emelyanov Subject: Re: [PATCH] Add pidfs filesystem Message-ID: <20170222195603.GG3279@comp-core-i7-2640m-0182e6.fortress> References: <20170218225307.GA10345@comp-core-i7-2640m-0182e6.fortress> <20170221145746.GA31914@redhat.com> <20170222153718.GA9258@altlinux.org> <20170222174803.GB19788@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170222174803.GB19788@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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