Skip to content
Snippets Groups Projects
Commit 4d766f33 authored by samm2's avatar samm2
Browse files

Linux: Fixed IDE drives support on megaraid device (see ticket #15)

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2948 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 40c3cc0e
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. ...@@ -43,6 +43,8 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[AS] Linux: Fixed IDE drives support on megaraid device (see ticket #15).
[AS] FreeBSD: Removed all old detection code, moving everything to [AS] FreeBSD: Removed all old detection code, moving everything to
the objects. Now we are using CAM/ATA enumerators to guess device the objects. Now we are using CAM/ATA enumerators to guess device
type. type.
......
...@@ -1044,6 +1044,16 @@ bool linux_megaraid_device::scsi_pass_through(scsi_cmnd_io *iop) ...@@ -1044,6 +1044,16 @@ bool linux_megaraid_device::scsi_pass_through(scsi_cmnd_io *iop)
return true; return true;
if (iop->cmnd[0] == 0x85 && iop->cmnd[1] == 0x06) { if (iop->cmnd[0] == 0x85 && iop->cmnd[1] == 0x06) {
pout("Rejecting SMART/ATA command to controller\n"); pout("Rejecting SMART/ATA command to controller\n");
// Emulate SMART STATUS CHECK drive reply
// smartctl fail to work without this
if(iop->cmnd[2]==0x2c) {
iop->resp_sense_len=22;
iop->sensep[0]=0x72; // response code
iop->sensep[7]=0x0e; // no idea what it is, copied from sat device answer
iop->sensep[8]=0x09; //
iop->sensep[17]=0x4f; // lm
iop->sensep[19]=0xc2; // lh
}
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment