Update Acorn partition parsing
PATCH 1/1 Update Acorn partition parsing
This patch:
- re-enables cumana partition parsing
- adds eesox partition parsing
- makes the powertec partition parsing fail if sector 0 looks like a PC bios partition table
Rather than having a single "acorn_partition" parser for all these types, we list them explicitly in check.c instead, along with some explaination about why they're where they are.
fs/partitions/Kconfig +11 -1
@@ -20,7 +20,17 @@ help Support hard disks partitioned under Acorn operating systems. -# bool ' Cumana partition support' CONFIG_ACORN_PARTITION_CUMANA +config ACORN_PARTITION_CUMANA + bool "Cumana partition support" if PARTITION_ADVANCED && ACORN_PARTITION + default y if !PARTITION_ADVANCED && ARCH_ACORN + help + Say Y here if you would like to use hard disks under Linux which + were partitioned using the Cumana interface on Acorn machines. + +config ACORN_PARTITION_EESOX + bool "EESOX partition support" if PARTITION_ADVANCED && ACORN_PARTITION + default y if !PARTITION_ADVANCED && ARCH_ACORN + config ACORN_PARTITION_ICS bool "ICS partition support" if PARTITION_ADVANCED && ACORN_PARTITION default y if !PARTITION_ADVANCED && ARCH_ACORN
fs/partitions/acorn.c +178 -63
377 lines not on this page · raw message
fs/partitions/acorn.h +10 -49
63 lines not on this page · raw message
fs/partitions/check.c +26 -2
@@ -45,9 +45,33 @@int warn_no_part =1 ;/*This is ugly: should make genhd removable media aware*/ static int (*check_part[])(struct parsed_partitions *,struct block_device *) = { -#ifdef CONFIG_ACORN_PARTITION - acorn_partition, +/* +* Probe partition formats with tables at disk address 0 +* that also have an ADFS boot block at 0xdc0. +*/ +#ifdef CONFIG_ACORN_PARTITION_ICS + adfspart_check_ICS, #endif +#ifdef CONFIG_ACORN_PARTITION_POWERTEC + adfspart_check_POWERTEC, +#endif +#ifdef CONFIG_ACORN_PARTITION_EESOX + adfspart_check_EESOX, +#endif + + /* + * Now move on to formats that only have partition info at + * disk address 0xdc0. Since these may also have stale + * PC/BIOS partition tables, they need to come before + * the msdos entry. + */ +#ifdef CONFIG_ACORN_PARTITION_CUMANA + adfspart_check_CUMANA, +#endif +#ifdef CONFIG_ACORN_PARTITION_ADFS + adfspart_check_ADFS, +#endif + #ifdef CONFIG_EFI_PARTITION efi_partition,/* this must come before msdos */ #endif
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html