lmi
[Top][All Lists]
Advanced

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

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


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

Vadim--After this command:

mount --rbind /var/cache/centos_lmi /srv/chroot/centos7lmi/var/cache/yum

I observe:

$mount |grep yum                                          
/dev/sdb5 on /srv/chroot/centos7lmi/var/cache/yum type ext4 
(rw,relatime,errors=remount-ro)
$grep yum /proc/mounts                           
/dev/sdb5 /srv/chroot/centos7lmi/var/cache/yum ext4 
rw,relatime,errors=remount-ro 0 0
$findmnt /srv/chroot/centos7lmi/var/cache/yum             
TARGET                               SOURCE                           FSTYPE 
OPTIONS
/srv/chroot/centos7lmi/var/cache/yum /dev/sdb5[/var/cache/centos_lmi] ext4   
rw,relatime,errors=rem

How does findmnt know that the "device" is really
  /dev/sdb5[/var/cache/centos_lmi]
when /proc/mounts seems to think it's just /dev/sdb5 ?

I thought /proc/mounts was supposed to be the definitive repository
of mount information, so does findmnt get this extra information:
  [/var/cache/centos_lmi]
from some more definitive source?


reply via email to

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