mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
READ CAPACITY(10): LBA is 32 bits, not 64
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3067,7 +3067,7 @@ static enum compl_status_e vdisk_exec_read_capacity16(struct vdisk_cmd_params *p
|
||||
nblocks = virt_dev->nblocks - 1;
|
||||
|
||||
if ((cmd->cdb[14] & 1) == 0) {
|
||||
uint64_t lba = get_unaligned_be64(&cmd->cdb[2]);
|
||||
uint32_t lba = get_unaligned_be32(&cmd->cdb[2]);
|
||||
if (lba != 0) {
|
||||
TRACE_DBG("PMI zero and LBA not zero (cmd %p)", cmd);
|
||||
scst_set_cmd_error(cmd,
|
||||
|
||||
Reference in New Issue
Block a user