Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 16:55:36 +0100 (CET)
From:      Soeren Schmidt <sos@spider.deepcore.dk>
To:        Eduard Martinescu <martines@frontiernet.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: ATAPI vs ATA disk
Message-ID:  <200211181555.gAIFtaTt019103@spider.deepcore.dk>
In-Reply-To: <1037626255.2801.20.camel@firestorm.crafts4life.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Eduard Martinescu wrote:
> 
> 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?

I have a patch coming up that supports the SMART commands, interpreting
the data will be left to userland (where smartmontools might be able
to do the job)...

-Søren

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?200211181555.gAIFtaTt019103>