xfs
[Top] [All Lists]

Re: PCMCIA and devfs

To: Manfred "W." Baumstark <maba@xxxxxxxxxxxxxxxxxxx>
Subject: Re: PCMCIA and devfs
From: Eric Sandeen <sandeen@xxxxxxxx>
Date: 16 Feb 2001 13:13:31 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3A8D79FC.F45E0B0F@ukl.uni-freiburg.de>
References: <3A8BE135.9294EBC7@ukl.uni-freiburg.de> <3A8C3D0F.B6E4A055@arts.usyd.edu.au> <3A8D79FC.F45E0B0F@ukl.uni-freiburg.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
On 16 Feb 2001 20:05:32 +0100, Manfred W. Baumstark wrote:

> If I turn devfs off, I get a boot failure. (Redhat 7 with your pre 0.9 RPMS
> applied).

This is due to a permissions problem bug on the files in /dev - if / is
mounted as read-only (i.e. at boot) then it does not allow writes to
_devices_ (such as /dev/console) on /.  This is not correct behavior...

> There is something in the installcavs that says "before turning devfs off
> you will need to obtain a fixed version of the kernel from the oss web
> site". Is this fixed version somewere?


It has been fixed in the CVS tree for the beta, but new RPMS have not
been generated, so you'll need to recompile the kernel yourself to fix
it.

Here is the patch to the kernel source provided in the kernel-source
RPM:

--- linux-2.4-xfs-beta/linux/fs/xfs/linux/xfs_vnode.h   2001/01/05
03:17:43        1.9
+++ linux-2.4-xfs-beta/linux/fs/xfs/linux/xfs_vnode.h   2001/01/19
21:14:09        1.10
@@ -690,8 +690,8 @@ typedef struct vattr {
  * access time can be modified.
  */
 #define        WRITEALLOWED(vp) \
-       ((vp)->v_vfsp && ((vp)->v_vfsp->vfs_flag & VFS_RDONLY) == 0)
-
+       (((vp)->v_vfsp && ((vp)->v_vfsp->vfs_flag & VFS_RDONLY) == 0) || \
+        ((vp)->v_type != VREG ) && ((vp)->v_type != VDIR) && ((vp)->v_type !=
VLNK))
 /*
  * Global vnode allocation:
  *




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