[PATCH] Change some filesystem menus into menuconfig to ease disabling it all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No need to get into the submenu to disable all related
config entries.

This makes it easier to disable all related config options
without entering the submenu. It will also enable one
to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change
the config dependencies.

Signed-off-by: Vincent Legoll <vincent.legoll@xxxxxxxxx>
---
 fs/Kconfig | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/fs/Kconfig b/fs/Kconfig
index 7aee6d699fd6..94ee1422e995 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -105,29 +105,38 @@ source "fs/autofs4/Kconfig"
 source "fs/fuse/Kconfig"
 source "fs/overlayfs/Kconfig"
 
-menu "Caches"
+menuconfig FS_CACHE_MENU
+	bool "Caches"
+
+if FS_CACHE_MENU
 
 source "fs/fscache/Kconfig"
 source "fs/cachefiles/Kconfig"
 
-endmenu
+endif # FS_CACHE_MENU
 
 if BLOCK
-menu "CD-ROM/DVD Filesystems"
+menuconfig FS_CDVD_MENU
+	bool "CD-ROM/DVD Filesystems"
+
+if FS_CDVD_MENU
 
 source "fs/isofs/Kconfig"
 source "fs/udf/Kconfig"
 
-endmenu
+endif # FS_CDVD_MENU
 endif # BLOCK
 
 if BLOCK
-menu "DOS/FAT/NT Filesystems"
+menuconfig FS_FAT_MENU
+	bool "DOS/FAT/NT Filesystems"
+
+if FS_FAT_MENU
 
 source "fs/fat/Kconfig"
 source "fs/ntfs/Kconfig"
 
-endmenu
+endif # FS_FAT_MENU
 endif # BLOCK
 
 menu "Pseudo filesystems"
-- 
2.14.1




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux