Skip site navigation (1)Skip section navigation (2)
Date:      18 Nov 2002 08:30:55 -0500
From:      Eduard Martinescu <martines@frontiernet.net>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   ATAPI vs ATA disk
Message-ID:  <1037626255.2801.20.camel@firestorm.crafts4life.com>

next in thread | raw e-mail | index | archive | help

I am trying to port the 'smartmontools' package from sourceforge.net to
FreeBSD.  However, I am running into some issues.  I need to be able to
send SMART commands (and read responses) to ATA disk drives.  At first
glance, it looked like the generic ATAPI layer would work great, but I
have found that the ATA disk drives do NOT support generic ATAPI
commands (through that ATAPICMD ioctl).  

So now I am at a loss as to how best to proceed.  Should I just patch
the code in ata-all.c that looks for an ATAPI_MASTER or SLAVE device?
(and allow a ATA_MASTER and SLAVE) to receive ATAPI commands?  Should I
try to work up a new IOCTL to support ATAPI commands to ATA disks?
Should I add IOCTL support to the AD device driver?

Any suggestions? 

Ed





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037626255.2801.20.camel>