xfs
[Top] [All Lists]

Re: Can't get initial console

To: utz lehmann <xfs@xxxxxxxxxx>, "Marcelo E. Magallon" <marcelo.magallon@xxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Subject: Re: Can't get initial console
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 18 Jan 2001 13:20:08 -0600
In-reply-to: Message from Steve Lord <lord@xxxxxxx> of "Thu, 18 Jan 2001 13:00:11 CST." <200101181900.f0IJ0Bi23236@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> > > hi
> > > 
> > > i have the same problem:
> > 
> > OK I am going back to try and reproduce this here, I think I know how
> > to I was building the kernel when I hit it.
> 
> 
> Yep, this was very simple to hit, running with /dev inside of XFS appears
> to be part of it - I am running on an ide root, not sure how that factors
> in to it. I suspect a problem in dev handling inside XFS, so a workaround
> would be to run devfs with the mount at boot time option (ok I know that is
> not always an option) or a non-xfs /dev directory in some other way. If you
> have redhat 7 devfs is not actually painful to get going.
> 
> Steve
> 

OK, I have to go off the air for a while here, but I think the problem is
due to opening the console read/write before the filesystem is read/write,
a very basic work around would be to comment out this check:

        if ((mode & IWRITE) && !WRITEALLOWED(XFS_ITOV(ip)))
                return XFS_ERROR(EROFS);

at line 3486 of fs/xfs/xfs_inode.c

This is a guess and is not the correct final solution. It all has to do
with xfs doing its own permission checks I think. Can someone try and
let me know.

Steve



<Prev in Thread] Current Thread [Next in Thread>