]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi: bump up SD_MAX_DISKS
authorDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 14 Sep 2011 21:48:47 +0000 (16:48 -0500)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Mon, 19 Sep 2011 21:54:33 +0000 (14:54 -0700)
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 <dave.kleikamp@oracle.com>
drivers/scsi/sd.h

index 6ad798bfd52a05b0c45de905756e0898c324e3f0..d039e53913ed83cb12e74fd739f7072f4ef30ddc 100644 (file)
@@ -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).