tech-userlevel archive

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

Re: Adding functions to libutil, part 2



reinoud%dropje.13thmonkey.org@localhost (Reinoud Zandijk) writes:

>> We have 'fsck' which resolves the device name and 'fsck_*' that gets passed
>> the resolved name.

>If they were never intended to be used separately then shouldn't they be in
>libexec?

Well, that's history for you :)


>> 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=.





Home | Main Index | Thread Index | Old Index