From: Randy Dunlap <randy.dunlap@oracle.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Calvin Walton <calvin.walton@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] FILESYSTEMS: Make "advanced partitions" immediately unselectable.
Date: Mon, 28 Jul 2008 10:37:31 -0700 [thread overview]
Message-ID: <20080728103731.7bafd577.randy.dunlap@oracle.com> (raw)
In-Reply-To: <alpine.LFD.1.10.0807280531210.3402@localhost.localdomain>
> yes, it's nitpicking but, as it's laid out right now, it's
> unnecessarily confusing and inconsistent. but i don't know if there's
> a trivial fix for it.
Yes, I'd call MSDOS partitions basic, not Advanced, and then put all others
under an Advanced menu that can be toggled on/off easily with menuconfig.
Not quite trivial, but not messy either.
Patch below. Comments?
---
From: Randy Dunlap <randy.dunlap@oracle.com>
Use "menuconfig" to allow all advanced partitions to be deselectable
from the FS partitions menu.
However, leave MSDOS_PARTITION as a basic partition type (i.e.,
not advanced), so that its "default y" remains in effect.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
fs/Kconfig | 6 ----
fs/partitions/Kconfig | 72 ++++++++++++++++++++++++++++----------------------
2 files changed, 41 insertions(+), 37 deletions(-)
--- lin2626-g9-kerndoc.orig/fs/Kconfig
+++ lin2626-g9-kerndoc/fs/Kconfig
@@ -2142,14 +2142,8 @@ config 9P_FS
endif # NETWORK_FILESYSTEMS
-if BLOCK
-menu "Partition Types"
-
source "fs/partitions/Kconfig"
-endmenu
-endif
-
source "fs/nls/Kconfig"
source "fs/dlm/Kconfig"
--- lin2626-g9-kerndoc.orig/fs/partitions/Kconfig
+++ lin2626-g9-kerndoc/fs/partitions/Kconfig
@@ -1,8 +1,19 @@
#
# Partition configuration
#
-config PARTITION_ADVANCED
- bool "Advanced partition selection"
+
+if BLOCK
+
+menu "Partition types"
+
+config MSDOS_PARTITION
+ bool "PC BIOS (MSDOS partition tables) support"
+ default y
+ help
+ Say Y here.
+
+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,14 +25,16 @@ config PARTITION_ADVANCED
If unsure, say N.
+if PARTITION_ADVANCED
+
config ACORN_PARTITION
- bool "Acorn partition support" if PARTITION_ADVANCED
+ bool "Acorn partition support"
default y if ARCH_ACORN
help
Support hard disks partitioned under Acorn operating systems.
config ACORN_PARTITION_CUMANA
- bool "Cumana partition support" if PARTITION_ADVANCED
+ bool "Cumana partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
help
@@ -29,12 +42,12 @@ config ACORN_PARTITION_CUMANA
were partitioned using the Cumana interface on Acorn machines.
config ACORN_PARTITION_EESOX
- bool "EESOX partition support" if PARTITION_ADVANCED
+ bool "EESOX partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
config ACORN_PARTITION_ICS
- bool "ICS partition support" if PARTITION_ADVANCED
+ bool "ICS partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
help
@@ -42,7 +55,7 @@ config ACORN_PARTITION_ICS
were partitioned using the ICS interface on Acorn machines.
config ACORN_PARTITION_ADFS
- bool "Native filecore partition support" if PARTITION_ADVANCED
+ bool "Native filecore partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
help
@@ -52,7 +65,7 @@ config ACORN_PARTITION_ADFS
`Y' here, Linux will support disk partitions created under ADFS.
config ACORN_PARTITION_POWERTEC
- bool "PowerTec partition support" if PARTITION_ADVANCED
+ bool "PowerTec partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
help
@@ -60,7 +73,7 @@ config ACORN_PARTITION_POWERTEC
the PowerTec SCSI drive.
config ACORN_PARTITION_RISCIX
- bool "RISCiX partition support" if PARTITION_ADVANCED
+ bool "RISCiX partition support"
default y if ARCH_ACORN
depends on ACORN_PARTITION
help
@@ -69,21 +82,21 @@ config ACORN_PARTITION_RISCIX
to read disks partitioned under RISCiX.
config OSF_PARTITION
- bool "Alpha OSF partition support" if PARTITION_ADVANCED
+ bool "Alpha OSF partition support"
default y if ALPHA
help
Say Y here if you would like to use hard disks under Linux which
were partitioned on an Alpha machine.
config AMIGA_PARTITION
- bool "Amiga partition table support" if PARTITION_ADVANCED
+ bool "Amiga partition table support"
default y if (AMIGA || AFFS_FS=y)
help
Say Y here if you would like to use hard disks under Linux which
were partitioned under AmigaOS.
config ATARI_PARTITION
- bool "Atari partition table support" if PARTITION_ADVANCED
+ bool "Atari partition table support"
default y if ATARI
help
Say Y here if you would like to use hard disks under Linux which
@@ -91,28 +104,22 @@ config ATARI_PARTITION
config IBM_PARTITION
bool "IBM disk label and partition support"
- depends on PARTITION_ADVANCED && S390
+ depends on S390
help
Say Y here if you would like to be able to read the hard disk
partition table format used by IBM DASD disks operating under CMS.
Otherwise, say N.
config MAC_PARTITION
- bool "Macintosh partition map support" if PARTITION_ADVANCED
+ bool "Macintosh partition map support"
default y if (MAC || PPC_PMAC)
help
Say Y here if you would like to use hard disks under Linux which
were partitioned on a Macintosh.
-config MSDOS_PARTITION
- bool "PC BIOS (MSDOS partition tables) support" if PARTITION_ADVANCED
- default y
- help
- Say Y here.
-
config BSD_DISKLABEL
bool "BSD disklabel (FreeBSD partition tables) support"
- depends on PARTITION_ADVANCED && MSDOS_PARTITION
+ depends on MSDOS_PARTITION
help
FreeBSD uses its own hard disk partition scheme on your PC. It
requires only one entry in the primary partition table of your disk
@@ -125,7 +132,7 @@ config BSD_DISKLABEL
config MINIX_SUBPARTITION
bool "Minix subpartition support"
- depends on PARTITION_ADVANCED && MSDOS_PARTITION
+ depends on MSDOS_PARTITION
help
Minix 2.0.0/2.0.2 subpartition table support for Linux.
Say Y here if you want to mount and use Minix 2.0.0/2.0.2
@@ -133,7 +140,7 @@ config MINIX_SUBPARTITION
config SOLARIS_X86_PARTITION
bool "Solaris (x86) partition table support"
- depends on PARTITION_ADVANCED && MSDOS_PARTITION
+ depends on MSDOS_PARTITION
help
Like most systems, Solaris x86 uses its own hard disk partition
table format, incompatible with all others. Saying Y here allows you
@@ -143,7 +150,7 @@ config SOLARIS_X86_PARTITION
config UNIXWARE_DISKLABEL
bool "Unixware slices support"
- depends on PARTITION_ADVANCED && MSDOS_PARTITION
+ depends on MSDOS_PARTITION
---help---
Like some systems, UnixWare uses its own slice table inside a
partition (VTOC - Virtual Table of Contents). Its format is
@@ -163,7 +170,6 @@ config UNIXWARE_DISKLABEL
config LDM_PARTITION
bool "Windows Logical Disk Manager (Dynamic Disk) support"
- depends on PARTITION_ADVANCED
---help---
Say Y here if you would like to use hard disks under Linux which
were partitioned using Windows 2000's/XP's or Vista's Logical Disk
@@ -197,14 +203,14 @@ config LDM_DEBUG
If unsure, say N.
config SGI_PARTITION
- bool "SGI partition support" if PARTITION_ADVANCED
+ bool "SGI partition support"
default y if DEFAULT_SGI_PARTITION
help
Say Y here if you would like to be able to read the hard disk
partition table format used by SGI machines.
config ULTRIX_PARTITION
- bool "Ultrix partition table support" if PARTITION_ADVANCED
+ bool "Ultrix partition table support"
default y if MACH_DECSTATION
help
Say Y here if you would like to be able to read the hard disk
@@ -212,7 +218,7 @@ config ULTRIX_PARTITION
Otherwise, say N.
config SUN_PARTITION
- bool "Sun partition tables support" if PARTITION_ADVANCED
+ bool "Sun partition tables support"
default y if (SPARC || SUN3 || SUN3X)
---help---
Like most systems, SunOS uses its own hard disk partition table
@@ -228,24 +234,28 @@ config SUN_PARTITION
config KARMA_PARTITION
bool "Karma Partition support"
- depends on PARTITION_ADVANCED
help
Say Y here if you would like to mount the Rio Karma MP3 player, as it
uses a proprietary partition table.
config EFI_PARTITION
bool "EFI GUID Partition support"
- depends on PARTITION_ADVANCED
select CRC32
help
Say Y here if you would like to use hard disks under Linux which
were partitioned using EFI GPT.
config SYSV68_PARTITION
- bool "SYSV68 partition table support" if PARTITION_ADVANCED
+ bool "SYSV68 partition table support"
default y if VME
help
Say Y here if you would like to be able to read the hard disk
partition table format used by Motorola Delta machines (using
sysv68).
Otherwise, say N.
+
+endif # PARTITION_ADVANCED
+
+endmenu
+
+endif # BLOCK
next prev parent reply other threads:[~2008-07-28 17:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-26 13:20 [PATCH] FILESYSTEMS: Make "advanced partitions" immediately unselectable Robert P. J. Day
2008-07-26 16:47 ` Randy Dunlap
2008-07-26 21:52 ` Robert P. J. Day
2008-07-28 3:11 ` Calvin Walton
2008-07-28 9:38 ` Robert P. J. Day
2008-07-28 17:37 ` Randy Dunlap [this message]
2008-07-28 18:14 ` Robert P. J. Day
2008-07-28 18:42 ` Robert P. J. Day
2008-07-28 18:51 ` Randy Dunlap
2008-07-28 18:56 ` Robert P. J. Day
2008-07-28 21:43 ` Grant Coady
2008-07-28 22:02 ` Calvin Walton
2008-07-28 22:14 ` Randy Dunlap
2008-07-29 10:36 ` Robert P. J. Day
2008-07-29 16:17 ` Randy Dunlap
2008-07-29 20:36 ` Robert P. J. Day
[not found] <aTS0O-4U1-33@gated-at.bofh.it>
[not found] ` <aTV89-39s-5@gated-at.bofh.it>
[not found] ` <aTZYh-4i3-21@gated-at.bofh.it>
[not found] ` <aUrrl-78m-3@gated-at.bofh.it>
[not found] ` <aUxwQ-1Hn-19@gated-at.bofh.it>
[not found] ` <aUERB-Zl-5@gated-at.bofh.it>
[not found] ` <aUFXh-3m9-3@gated-at.bofh.it>
[not found] ` <aUJ4U-1xe-19@gated-at.bofh.it>
[not found] ` <aUJeD-1N6-13@gated-at.bofh.it>
[not found] ` <aUUME-5MM-11@gated-at.bofh.it>
[not found] ` <aV05W-1wO-41@gated-at.bofh.it>
2008-08-02 12:41 ` Bodo Eggert
2008-08-02 14:36 ` Randy Dunlap
2008-08-02 21:16 ` Bodo Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080728103731.7bafd577.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@osdl.org \
--cc=calvin.walton@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@crashcourse.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox