Messages in this thread Patch in this message | | | From | ecashin@noserose ... | Date | Thu, 24 Mar 2005 07:21:28 -0800 | Subject | [PATCH 2.6.11] aoe [7/12]: support configuration of AOE_PARTITIONS from Kconfig |
| |
support configuration of AOE_PARTITIONS from Kconfig
Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
diff -uprN a/drivers/block/Kconfig b/drivers/block/Kconfig --- a/drivers/block/Kconfig 2005-03-07 17:37:58.000000000 -0500 +++ b/drivers/block/Kconfig 2005-03-10 12:19:54.000000000 -0500 @@ -506,4 +506,19 @@ config ATA_OVER_ETH This driver provides Support for ATA over Ethernet block devices like the Coraid EtherDrive (R) Storage Blade. +config AOE_PARTITIONS + int "Partitions per AoE device" if ATA_OVER_ETH + default "16" + help + The default is to support 16 partitions per aoe device. Some + systems lack good support for devices with large minor + numbers. + + Such systems will be able to use more aoe disks when + AOE_PARTITIONS is set to one, but you won't be able to + partition the disks, and you must make sure your device + nodes are created to work with the value you select. + + If unsure, use 16. + endmenu diff -uprN a/drivers/block/aoe/aoe.h b/drivers/block/aoe/aoe.h --- a/drivers/block/aoe/aoe.h 2005-03-10 12:19:27.000000000 -0500 +++ b/drivers/block/aoe/aoe.h 2005-03-10 12:19:54.000000000 -0500 @@ -6,8 +6,9 @@ /* set AOE_PARTITIONS to 1 to use whole-disks only * default is 16, which is 15 partitions plus the whole disk */ -#ifndef AOE_PARTITIONS -#define AOE_PARTITIONS 16 +#define AOE_PARTITIONS CONFIG_AOE_PARTITIONS +#if AOE_PARTITIONS < 1 +#error AOE_PARTITIONS less than one #endif #define SYSMINOR(aoemajor, aoeminor) ((aoemajor) * 10 + (aoeminor))
-- Ed L. Cashin <ecashin@coraid.com> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |