Xref: utzoo alt.sys.sun:922 comp.unix.questions:22563 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!van-bc!ubc-cs!alberta!myrias!aunro!atha!lyndon From: lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) Newsgroups: alt.sys.sun,comp.unix.questions Subject: Why /etc/mtab? (was: Example modification of /etc/mtab wanted) Summary: why use a seperate file? Message-ID: <1918@aurora.cs.athabascau.ca> Date: 31 May 90 21:36:50 GMT References: <1678@trlluna.trl.oz> Followup-To: comp.unix.questions Organization: Athabasca University Lines: 21 [ Followups in comp.unix.questions ] summer@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@cs.athabascau.ca Sendmail has been described as the largest program yet created that does absolutely nothing. -- Mr. Protocol