From: Dave Kleikamp Date: Wed, 14 Sep 2011 21:48:47 +0000 (-0500) Subject: scsi: bump up SD_MAX_DISKS X-Git-Tag: v2.6.39-400.9.0~901 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9edefe7c9d8c35b4051461c2060e61633b86cfc8;p=users%2Fjedix%2Flinux-maple.git 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 --- 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).