tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Adding functions to libutil, part 2
Hi Micheal,
On Fri, Jun 21, 2024 at 11:27:33AM -0000, Michael van Elst wrote:
> >> We also have 'df' where 'df -W' prints the original symbolic path
> >> (but just for NAME=) because a resolved symbol path cannot be
> >> reversed.
>
> >'df -W' just uses getmntinfo() and mount(8) only calls getfsspecname() before
> >passing it on.
>
> It's fetches (part of) the unresolved spec that was saved as f_mntfromlabel
> and prepends NAME=.
If getfsspecname() has been called names will be translated to raw /dev/rdk*
devices and those always have a name; the name itself is lost when calling the
mount_* programs.
With regards,
Reinoud
Home |
Main Index |
Thread Index |
Old Index