Why /etc/mtab? (was: Example modification of /etc/mtab wanted)
Lyndon Nerenberg
lyndon at cs.AthabascaU.CA
Fri Jun 1 07:36:50 AEST 1990
[ Followups in comp.unix.questions ]
summer at atreides.trl.oz.au (Mark Summerfield - Switching) writes:
>The problem is that using mount() doesn't add an entry to /etc/mtab, so
>other commands (such as df, and umount) don't know about the
>filesystem.
Which leads me to pose the question:
Why does Unix use a file to store mount information?
It seems to me that the proper way to determine what's mounted would
be to look in the kernel mount tables. It would be trivial to implement
a system call to return the information. Anyone know why the "ask the
kernel" approach was never taken?
--
Lyndon Nerenberg VE6BBM / Computing Services / Athabasca University
{alberta,cbmvax,mips}!atha!lyndon || lyndon at cs.athabascau.ca
Sendmail has been described as the largest program yet created
that does absolutely nothing. -- Mr. Protocol
More information about the Comp.unix.questions
mailing list