tech-userlevel archive

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

Re: Autoconfiguring root device and fstab(5) (wedges?)



uebayasi%gmail.com@localhost (Masao Uebayashi) writes:

>Can't we move the logic from mount(8) to getfsent(3) internal?

There are some problems.
- It would only work for fstab entries but not command line arguments.
- getfsent, so far, is a simple text parser like the other database routines.
  Overloading it with 'magic' knowledge about internal behaviour of the
  kernel doesn't feel right.

I'd rather add some well-defined API to libutil that covers
such name mapping and also other disk access routines that
are now re-invented in all the utilities.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index