Re: procfs bug (was: Re: bttv (or PCI subsystem?) still broken in

From: Russell King (rmk@arm.linux.org.uk)
Date: Sun May 14 2000 - 03:50:18 EST


Alexander Viro writes:
> Works for me... Just watch for the filesystems that might want to do odd
> things on driver initialization (NWFS wanted to scan the partitions, IIRC,
> but I'm not sure at which point that was supposed to happen).

Hmm, this could get rather messy. Maybe we ought to move procfs to be the
first thing initialised under fs, followed by the partitions and then the
other filesystems. Example patch attached.

This would then allow NWFS to scan the available partitions, if it does it
via its initcall function. Maybe Jeff could comment on this?

--- orig/fs/Makefile Wed Mar 1 11:38:54 2000
+++ linux/fs/Makefile Sun May 14 09:46:26 2000
@@ -21,7 +21,7 @@
                 nfsd nls devpts devfs adfs partitions qnx4 udf bfs cramfs \
                 openpromfs autofs4 ramfs
 
-SUB_DIRS := partitions
+SUB_DIRS :=
 
 ifeq ($(CONFIG_QUOTA),y)
 O_OBJS += dquot.o
@@ -29,6 +29,14 @@
 O_OBJS += noquot.o
 endif
 
+ifdef CONFIG_PROC_FS
+SUB_DIRS += proc
+endif
+
+SUB_DIRS += partitions
+
+# Do not add any filesystems before this line
+
 ifeq ($(CONFIG_EXT2_FS),y)
 SUB_DIRS += ext2
 else
@@ -91,10 +99,6 @@
   ifeq ($(CONFIG_VFAT_FS),m)
   MOD_SUB_DIRS += vfat
   endif
-endif
-
-ifdef CONFIG_PROC_FS
-SUB_DIRS += proc
 endif
 
 ifeq ($(CONFIG_BFS_FS),y)

   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:24 EST