Re: [PATCH] proc.5: document 'subset' mount option.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux