Fix from Jianxi Chen <pacers@users.sourceforge.net>, which fixes problem with devices >2TB in size

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@190 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2007-09-24 16:07:04 +00:00
parent 4f79d58a3c
commit d2799ea8fa
2 changed files with 7 additions and 3 deletions

View File

@@ -660,4 +660,7 @@ Thanks to:
* Terry Greeniaus <tgreeniaus@yottayotta.com> for fixes.
* Jianxi Chen <pacers@users.sourceforge.net> for fixing problems with
devices >2TB in size
Vladislav Bolkhovitin <vst@vlnb.net>, http://scst.sourceforge.net

View File

@@ -713,9 +713,10 @@ static int vdisk_do_job(struct scst_cmd *cmd)
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;
}