Linux-man Archive mirror
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Matteo Croce <technoboy85@gmail.com>
Cc: linux-man@vger.kernel.org, Matteo Croce <teknoraver@meta.com>
Subject: Re: [PATCH] proc.5: document 'subset' mount option.
Date: Tue, 14 May 2024 21:53:28 +0200	[thread overview]
Message-ID: <mtqhpz2p3b7fmjkxq5hbnuls4mpkcckrnubcrzwc5cydawdjyb@3jhfe5monxpn> (raw)
In-Reply-To: <CAFnufp1XDhzF=+2QqFGg_Ji04nxpb_wh0CYRgee+q00FgcqbDw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]

Hi Matteo,

On Tue, May 14, 2024 at 09:12:43PM GMT, Matteo Croce wrote:
> Il giorno mar 14 mag 2024 alle ore 21:06 Alejandro Colomar
> <alx@kernel.org> ha scritto:
> > Then 'pid' should be in bold (B), not italics (I).
> >
> 
> Ok, I will send a v2
> 
> > > # mount -t proc proc_pid pid -o subset=pid
> > > # mount |grep -w proc_pid
> > > proc_pid on /tmp/proc/pid type proc (rw,relatime,subset=pid)
> > >
> > > # ll -d pid/{1,$$,cmdline,version}
> > > ls: cannot access 'pid/cmdline': No such file or directory
> > > ls: cannot access 'pid/version': No such file or directory
> > > dr-xr-xr-x. 9 root root 0 May 14 09:43 pid/1
> > > dr-xr-xr-x. 9 root root 0 May 14 09:43 pid/25146
> >
> > Hmmm, makes sense.
> >
> > So, it contains:
> >
> > /proc/<pid>
> > /proc/<tid>
> > /proc/self
> > /proc/thread-self
> >
> > And all others are gone, right?
> >
> > Is anything else included?  Or is anything within those dirs gone?
> >
> 
> Exactly, self and thread-self are the only non-numeric entries in that
> mounted procfs.
> 
> # ls pid |grep -vx '[[:digit:]]*'
> self
> thread-self
> #

Please document that in the commit message.

Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es/>
A client is hiring kernel driver, mm, and/or crypto developers;
contact me if interested.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-05-14 19:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 17:54 [PATCH] proc.5: document 'subset' mount option technoboy85
2024-05-14 18:08 ` Alejandro Colomar
2024-05-14 18:43   ` Matteo Croce
2024-05-14 19:06     ` Alejandro Colomar
2024-05-14 19:12       ` Matteo Croce
2024-05-14 19:53         ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mtqhpz2p3b7fmjkxq5hbnuls4mpkcckrnubcrzwc5cydawdjyb@3jhfe5monxpn \
    --to=alx@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=technoboy85@gmail.com \
    --cc=teknoraver@meta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).