看板 DFBSD_bugs 關於我們 聯絡資訊
:Alex Hornung <ahornung@gmail.com> added the comment: : :Ok, I think one should use device type 'sat' for smartmontools (ata over sc= :si,=20 :or scsi attached ata). For this to be feasible, ATA_PASS_* have to be=20 :implemented in our ahci driver. :Relevant snippet in ahci_cam.c: : case ATA_PASS_12: : case ATA_PASS_16: : /* : * XXX implement pass-through : */ : ccbh->status =3D CAM_FUNC_NOTAVAIL; : break; : :I'll give it a shot, but any hint is welcome. : :Cheers, :Alex Hornung The best place to get examples is probably ahci_cam.c... the probe code runs a number of discrete ATA commands. It is fairly straightforward. I'm not sure how ATAPI is distinguished from ATA w/ regards to the pass-thru ioctls though. -Matt Matthew Dillon <dillon@backplane.com>