[issue1412] sysutils/smartmontools doesn't work with ahci(4)

Matthew Dillon dillon at apollo.backplane.com
Mon Sep 7 16:19:53 PDT 2009

:Alex Hornung <ahornung at gmail.com> added the comment:
:Ok, I think one should use device type 'sat' for smartmontools (ata over sc=
: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.
: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.

					Matthew Dillon 
					<dillon at backplane.com>

More information about the Bugs mailing list