From 9edefe7c9d8c35b4051461c2060e61633b86cfc8 Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Wed, 14 Sep 2011 16:48:47 -0500 Subject: [PATCH] scsi: bump up SD_MAX_DISKS SD_MAX_DISKS is arbitrarily limited to the number of scsi disks in the namespace constructed of "sd" followed by one to three of the letters a-z, or 18278 disks. There is no need for this limit, since appending a fourth letter works perfectly fine. This simple patch just bumps the number up to allow up to four letters after "sd". It might be best to simply remove the test against SD_MAX_DISKS, but this is the patch that has been unit tested. Signed-off-by: Dave Kleikamp --- drivers/scsi/sd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index 6ad798bfd52a..d039e53913ed 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h @@ -12,7 +12,7 @@ * This is limited by the naming scheme enforced in sd_probe, * add another character to it if you really need more disks. */ -#define SD_MAX_DISKS (((26 * 26) + 26 + 1) * 26) +#define SD_MAX_DISKS ((((26 * 26) + 26 + 1) * 26 + 1) * 26) /* * Time out in seconds for disks and Magneto-opticals (which are slower). -- 2.50.1