USB: allow usbstorage to have LUNS greater than 2Tb
commit17f060224fb9f435c6f9306b7b61419d038def13
authorRichard Sharpe <rsharpe@richardsharpe.com>
Wed, 10 Oct 2007 17:56:28 +0000 (10 10:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:33 +0000 (12 14:55 -0700)
tree9ea83420b7b7b4143977efc2c303e94a7dde61f7
parenteecfb911a03a48ef5f7114246343128bd01c1b5f
USB: allow usbstorage to have LUNS greater than 2Tb

Attached is a very small patch (several comment lines) and a one-line
coded change) that allows for USB storage devices that are larger than
2TB.

At the company where I work we need such support, and one of my
co-workers, Jane Liu, pointed out that SCSI low-layer drivers need to
specify what size CDBs they accept. After looking through the code it
became obvious that the current USB Storage code accepted the default of
12-byte CDBs, so I changed it to accept 16-byte CDBs. This allows our
device to work.

Signed-off-by: Richard Sharpe <rsharpe@richardsharpe.com>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/usb.c