This commit is contained in:
Uwe Seimet 2021-08-30 13:01:06 +02:00
parent 2edac296a6
commit d46013934a
2 changed files with 6 additions and 6 deletions

View File

@ -421,7 +421,7 @@ void Disk::ModeSelect10(SASIDEV *controller)
void Disk::ModeSense6(SASIDEV *controller)
{
ctrl->length = ModeSense(ctrl->cmd, ctrl->buffer);
ctrl->length = ModeSense6(ctrl->cmd, ctrl->buffer);
ASSERT(ctrl->length >= 0);
if (ctrl->length == 0) {
LOGWARN("%s Not supported MODE SENSE page $%02X",__PRETTY_FUNCTION__, (unsigned int)ctrl->cmd[2]);
@ -688,10 +688,10 @@ bool Disk::ModeSelect(const DWORD* /*cdb*/, const BYTE *buf, int length)
//---------------------------------------------------------------------------
//
// MODE SENSE
// MODE SENSE(6)
//
//---------------------------------------------------------------------------
int Disk::ModeSense(const DWORD *cdb, BYTE *buf)
int Disk::ModeSense6(const DWORD *cdb, BYTE *buf)
{
ASSERT(cdb);
ASSERT(buf);

View File

@ -125,7 +125,6 @@ public:
bool Removal(const DWORD *cdb); // PREVENT/ALLOW MEDIUM REMOVAL command
virtual int Read(const DWORD *cdb, BYTE *buf, uint64_t block);
virtual int ModeSense10(const DWORD *cdb, BYTE *buf); // MODE SENSE(10) command
int ReadDefectData10(const DWORD *cdb, BYTE *buf); // READ DEFECT DATA(10) command
int SelectCheck(const DWORD *cdb); // SELECT check
int SelectCheck10(const DWORD *cdb); // SELECT(10) check
@ -169,6 +168,7 @@ private:
void Read(SASIDEV *, uint64_t);
void Write(SASIDEV *, uint64_t);
void Verify(SASIDEV *, uint64_t);
bool Format(const DWORD *cdb); // FORMAT UNIT command
int ModeSense(const DWORD *cdb, BYTE *buf); // MODE SENSE command
bool Format(const DWORD *cdb);
int ModeSense6(const DWORD *cdb, BYTE *buf);
int ModeSense10(const DWORD *cdb, BYTE *buf);
};