Commit 1203c075 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed field in CDB that should NOT be set when calling a short form READ POSITION.

parent c7a1295d
......@@ -203,10 +203,10 @@ drives::positionInfo drives::DriveGeneric::getPositionInfo()
SCSI::Structures::LinuxSGIO_t sgh;
positionInfo posInfo;
SCSI::Structures::setU16(cdb.allocationLength, sizeof(positionData));
// We use the short for action (default, 00h), for which allocationLength
// should NOT be set. (SSC-4, 7.7.1 READ POSITON)
// We just go all defaults: service action = 00 (SHORT FORM BLOCK ID)
// The result will come in fixed size and allocation length must be 0.
// At least IBM drives will complain otherwise
sgh.setCDB(&cdb);
sgh.setDataBuffer(&positionData);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment