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:
*
|