DragonFly bugs List (threaded) for 2009-09
DragonFly BSD
DragonFly bugs List (threaded) for 2009-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 7 Sep 2009 16:19:15 -0700 (PDT)

: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>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]