Commit 833d1fa7 authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

minor fixes for LOG SENSE CDB and senseBuff size

parent 002959e1
......@@ -135,7 +135,7 @@ namespace Tape {
std::vector<std::string> ret;
/* We don't know how many elements we'll get. Prepare a 100 parameters array */
SCSI::Structures::tapeAlertLogPage_t<100> tal;
unsigned char senseBuff[256];
unsigned char senseBuff[255];
SCSI::Structures::logSenseCDB_t cdb;
cdb.pageCode = SCSI::logSensePages::tapeAlert;
SCSI::Structures::LinuxSGIO_t sgh;
......
......@@ -225,13 +225,16 @@ namespace SCSI {
unsigned char opCode;
unsigned char SP : 1;
unsigned char : 7;
unsigned char PPC: 1;
unsigned char :6;
unsigned char pageCode : 6;
unsigned char PC : 2;
unsigned char subPage;
unsigned char reserved;
unsigned char parameterPointer[2];
unsigned char allocationLength[2];
......
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