From: <vl...@us...> - 2007-09-24 17:06:45
|
Revision: 190 http://scst.svn.sourceforge.net/scst/?rev=190&view=rev Author: vlnb Date: 2007-09-24 09:07:04 -0700 (Mon, 24 Sep 2007) Log Message: ----------- Fix from Jianxi Chen <pa...@us...>, which fixes problem with devices >2TB in size Modified Paths: -------------- trunk/scst/README trunk/scst/src/dev_handlers/scst_vdisk.c Modified: trunk/scst/README =================================================================== --- trunk/scst/README 2007-09-19 09:19:29 UTC (rev 189) +++ trunk/scst/README 2007-09-24 16:07:04 UTC (rev 190) @@ -660,4 +660,7 @@ * Terry Greeniaus <tgr...@yo...> for fixes. + * Jianxi Chen <pa...@us...> for fixing problems with + devices >2TB in size + Vladislav Bolkhovitin <vs...@vl...>, http://scst.sourceforge.net Modified: trunk/scst/src/dev_handlers/scst_vdisk.c =================================================================== --- trunk/scst/src/dev_handlers/scst_vdisk.c 2007-09-19 09:19:29 UTC (rev 189) +++ trunk/scst/src/dev_handlers/scst_vdisk.c 2007-09-24 16:07:04 UTC (rev 190) @@ -713,9 +713,10 @@ lba_start |= ((u64)cdb[3]) << 48; lba_start |= ((u64)cdb[4]) << 40; lba_start |= ((u64)cdb[5]) << 32; - lba_start |= ((u64)cdb[6]) << 16; - lba_start |= ((u64)cdb[7]) << 8; - lba_start |= ((u64)cdb[8]); + lba_start |= ((u64)cdb[6]) << 24; + lba_start |= ((u64)cdb[7]) << 16; + lba_start |= ((u64)cdb[8]) << 8; + lba_start |= ((u64)cdb[9]); data_len = cmd->bufflen; break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |