From: Linus Benedict Torvalds (torvalds@klaava.Helsinki.FI)
Date: 03/20/92


From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
Subject: Re: Problem with 0.95a and 0.12 "mount"
Date: 20 Mar 1992 12:16:08 GMT

In article <1992Mar20.054144.15483@utdallas.edu> ramesh@utdallas.edu (R. Ramesh) writes:
>
> As the subject line says, I upgraded to 0.95a kernel but kept everything
>else as it was with 0.12. Generally things are ok except for the following.
>Whenever I mount or umount any partition mtab becomes empty. Somehow mtab is
>always empty. This is quite annoying as I don't know what file systems are
>mounted and where. Also df doesn't work (as mtab is empty). Can anyone help?

Upgrade mount and umount to the 0.95(a) versions: the 0.12 version opens
/etc/mtab~ with O_CREAT | O_EXCL, but no O_WROLNY, so writing to the
file will fail (and mount doesn't check for it). The 0.12 kernel didn't
check for the open-mode when writing, so it worked for that, but 0.95a
does.

                Linus