lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Where can I find the urtext of mount data?


From: Greg Chicares
Subject: Re: [lmi] Where can I find the urtext of mount data?
Date: Tue, 12 May 2020 23:11:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 2020-05-12 22:15, Vadim Zeitlin wrote:
> On Tue, 12 May 2020 21:41:19 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> I thought /proc/mounts was supposed to be the definitive repository
> GC> of mount information, so does findmnt get this extra information:
> GC>   [/var/cache/centos_lmi]
> GC> from some more definitive source?

[...you consulted its manpage...]

>  And, lo and behold, looking at /proc/self/mountinfo, I do indeed see that
> it contains the information you're after, i.e. the original mount point for
> r-bounded mounts (for all the other ones it's just "/").

Wow, thanks, I was snowblind. After seeing many people speak of
"/proc/mounts or /proc/self/mounts", and finding that they're the same:

lrwxrwxrwx 1 root root 11 May 12 17:40 /proc/mounts -> self/mounts

...I had added a mental filter
  s,/proc/\(self/\)*mount.*,the_proc_mount_thing,

and therefore

  $echo "/proc/self/mountinfo" |sed 
-e's,/proc/\(self/\)*mount.*,the_proc_mount_thing,'
  the_proc_mount_thing

so, despite reading that manpage repeatedly, I couldn't see that
"mounts" != "mountinfo".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]