lkml.org 
[lkml]   [2008]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] FILESYSTEMS: Make "advanced partitions" immediately unselectable.

Use "menuconfig" to allow all advanced partitions to be deselectable
from the top-level FS menu.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---
fs/Kconfig | 4 ----
fs/partitions/Kconfig | 9 +++++++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/fs/Kconfig b/fs/Kconfig
index 37db79a..f06241f 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -2143,11 +2143,7 @@ config 9P_FS
endif # NETWORK_FILESYSTEMS

if BLOCK
-menu "Partition Types"
-
source "fs/partitions/Kconfig"
-
-endmenu
endif

source "fs/nls/Kconfig"
diff --git a/fs/partitions/Kconfig b/fs/partitions/Kconfig
index cb5f0a3..4bb87d2 100644
--- a/fs/partitions/Kconfig
+++ b/fs/partitions/Kconfig
@@ -1,8 +1,9 @@
#
# Partition configuration
#
-config PARTITION_ADVANCED
- bool "Advanced partition selection"
+
+menuconfig PARTITION_ADVANCED
+ bool "Advanced partition support"
help
Say Y here if you would like to use hard disks under Linux which
were partitioned under an operating system running on a different
@@ -14,6 +15,8 @@ config PARTITION_ADVANCED

If unsure, say N.

+if PARTITION_ADVANCED
+
config ACORN_PARTITION
bool "Acorn partition support" if PARTITION_ADVANCED
default y if ARCH_ACORN
@@ -249,3 +252,5 @@ config SYSV68_PARTITION
partition table format used by Motorola Delta machines (using
sysv68).
Otherwise, say N.
+
+endif # PARTITION_ADVANCED
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================

\
 
 \ /
  Last update: 2008-07-26 15:25    [from the cache]
©2003-2011 Jasper Spaans