From: <Chr...@t-...> - 2004-12-07 20:08:12
|
>>Please return output of 'smartctl -a -r ioctl,2 ...' if read log is >>still not working. >> >> >It gets more interesting. Now the error is gone, but it still says >self test log read failed. I'll paste the output of the command you >gave me in a private mail. > > Thanks for testing. Unfortunately, on your system the IOCTL_IDE_PASS_THROUGH actually don't work: >REPORT-IOCTL: DeviceFD=0 Command=SMART READ LOG InputParameter=1 > SMART_RCV_DRIVE_DATA failed, Error=87 > Input : CMD=0xb0, FR=0xd5, SC=0x01, NS=0x01, CL=0x4f, CH=0xc2, SEL=0x00 > IOCTL_IDE_PASS_THROUGH output data missing (0, 512) > Input : CMD=0xb0, FR=0xd5, SC=0x01, NS=0x01, CL=0x4f, CH=0xc2, SEL=0x00 > Output: STS=0xb0,ERR=0xd5, SC=0x01, NS=0x01, CL=0x4f, CH=0xc2, SEL=0x00 >REPORT-IOCTL: DeviceFD=0 Command=SMART READ LOG returned -1 errno=5 [Input/output error] > The DeviceIoControl() call returns OK, but the driver does not return any output registers or data. The trouble occurs, because someone decided that SMART_RCV_DRIVE_DATA should not work for SMART READ LOG on NT4/2000/XP. It works well on 9x/ME. The undocumented IOCTL_IDE_PASS_THROUGH was one alternative which works on "most" 2000/XP systems (see also INSTALL and WARNINGS file). There are alternatives like IOCTL_ATA_PASS_THROUGH, which is documented, but reportedly only working on very recent XP and 2003 systems. A related newsgroup thread is here: http://groups.google.de/groups?threadm=3bd86067.0406211023.12daa375%40posting.google.com Sorry, but this issue will not be fixed in upcoming 5.34, but I really hope to get this fixed soon. Any info about IOCTL_ATA_PASS_THROUGH, IOCTL_SCSI_MINIPORT_READ_LOG & friends is appreciated. Cheers, Christian |