On Mon, Apr 09, 2001 at 12:22:36PM -0300, Alexandre Oliva wrote:
> On Apr  9, 2001, Jean-Louis Martineau <[EMAIL PROTECTED]> wrote:
> 
> >> Here's a patch that fixes the bug.  Obviously, the last hunk is enough
> >> to fix the bug, but I'm posting exactly what I'm about to check in:
> >> 2.4.2 branch and mainline.
> 
> > But your patch break / for linux :-(
> 
> You sure?  It appears to work for me, both `/dev/something' and
> `LABEL=/' in /etc/fstab.

>cat /etc/fstab
/dev/hda1 / ext2 defaults 1 1

>cat /proc/mounts
/dev/root / ext2 rw 0 0

>cat /etc/mtab
/dev/hda1 / ext2 rw 0 0

We search /proc/mounts before /etc/mtab.
/dev/root doesn't exist and this entry of /proc/mounts should not be accepted.
We should accept the entry from /etc/mtab.

Jean-Louis 
-- 
Jean-Louis Martineau             email: [EMAIL PROTECTED] 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834

Reply via email to