[patch] menuconfig - lift the fs menu

Previous thread: [TOMOYO 04/15](repost) Utility functions and securityfs interface for policy manipulation. by Kentaro Takeda on Tuesday, October 2, 2007 - 3:31 am. (54 messages)

Next thread: [PATCH] mark read_crX() asm code as volatile by Kirill Korotaev on Tuesday, October 2, 2007 - 10:08 am. (10 messages)
To: Andrew Morton <akpm@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Randy Dunlap <randy.dunlap@...>
Date: Tuesday, October 2, 2007 - 9:51 am

Lift the FS menu a bit by moving filesystem-specific
parts into their own menu.

This also moves minix and romfs into the "misc fs" menu,
as per Randy Dunlap's suggestion [http://lkml.org/lkml/2007/9/25/344]

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
fs/Kconfig | 81 +++++++++++++++++++++++++++++++-------------------------
fs/gfs2/Kconfig | 9 ++++--
fs/xfs/Kconfig | 10 +++---
3 files changed, 56 insertions(+), 44 deletions(-)

Index: linux-2.6.23/fs/Kconfig
===================================================================
--- linux-2.6.23.orig/fs/Kconfig
+++ linux-2.6.23/fs/Kconfig
@@ -6,6 +6,17 @@ menu "File systems"

if BLOCK

+menuconfig EXT_FS
+ bool "Extended filesystem family"
+ default y
+ ---help---
+ Say Y here to get to see options for the 'ext' filesystems.
+ This option alone does not add any kernel code.
+
+ If you say N, all options in this submenu will be skipped and disabled.
+
+if EXT_FS
+
config EXT2_FS
tristate "Second extended fs support"
help
@@ -272,7 +283,9 @@ config FS_MBCACHE
default y if EXT2_FS=y || EXT3_FS=y || EXT4DEV_FS=y
default m if EXT2_FS=m || EXT3_FS=m || EXT4DEV_FS=m

-config REISERFS_FS
+endif # EXT_FS
+
+menuconfig REISERFS_FS
tristate "Reiserfs support"
help
Stores not just filenames but the files themselves in a balanced
@@ -358,7 +371,7 @@ config REISERFS_FS_SECURITY
If you are not using a security module that requires using
extended attributes for file security labels, say N.

-config JFS_FS
+menuconfig JFS_FS
tristate "JFS filesystem support"
select NLS
help
@@ -420,7 +433,7 @@ config FS_POSIX_ACL
source "fs/xfs/Kconfig"
source "fs/gfs2/Kconfig"

-config OCFS2_FS
+menuconfig OCFS2_FS
tristate "OCFS2 file system support"
depends on NET && SYSFS
select CONFIGFS_FS
@@ -458,39 +471,6 @@ config OCFS2_DEBUG_MASKLOG
This option will enlarge your kernel, but it allows debugging of
ocfs2 filesystem issues.

-c...

To: Jan Engelhardt <jengelh@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, Randy Dunlap <randy.dunlap@...>
Date: Tuesday, October 2, 2007 - 11:02 am

I for one would much rather see a distributed approach used here.
So all filesystem Kconfig bits move to their respective filesystems.

And then on top of that or in same process reorganize the menus a bit.

We did this with success for networking a year or so ago.

Sam
-

To: Jan Engelhardt <jengelh@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Randy Dunlap <randy.dunlap@...>
Date: Tuesday, October 2, 2007 - 10:11 am

I personally prefer fs menu as-is. There is only one reiserfs,
only one XFS. only three ext filesystems...
-

Previous thread: [TOMOYO 04/15](repost) Utility functions and securityfs interface for policy manipulation. by Kentaro Takeda on Tuesday, October 2, 2007 - 3:31 am. (54 messages)

Next thread: [PATCH] mark read_crX() asm code as volatile by Kirill Korotaev on Tuesday, October 2, 2007 - 10:08 am. (10 messages)