xfs
[Top] [All Lists]

Patch for cannot open initial console error

To: linux-xfs@xxxxxxxxxxx
Subject: Patch for cannot open initial console error
From: Steve Lord <lord@xxxxxxx>
Date: Thu, 18 Jan 2001 16:02:58 -0600
Sender: owner-linux-xfs@xxxxxxxxxxx
This is an untested patch which should fix the problem where an xfs
root (specifically /dev directory) booted readonly leads to problems
with opening the console device. It should follow the permissions
checking behaviour of other filesystems.

Steve


===========================================================================
Index: linux/fs/xfs/linux/xfs_vnode.h
===========================================================================

--- /usr/tmp/TmpDir.29187-0/linux/fs/xfs/linux/xfs_vnode.h_1.11 Thu Jan 18 
15:53:33 2001
+++ linux/fs/xfs/linux/xfs_vnode.h      Thu Jan 18 15:53:02 2001
@@ -703,8 +703,8 @@
  * 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>
  • Patch for cannot open initial console error, Steve Lord <=