Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending arbitrary ATA commands?



Peter --

I just got an enhancement request (via Radar) to add an API to ATASMARTLib to grab the ATA Identify Data. For some reason, I didn't include this in the original API. I will be adding it to the next major OS release and will probably implement it and push it out to Darwin in the next few weeks.

-- Chris

On Wednesday, November 27, 2002, at 08:35 AM, Peter Cassidy wrote:

Hi all,

I'm currently working on a Darwin port of smartmontools. Right now, I'm using ATASMARTLib to enable SMART & read the relevant data and thresholds (thanks, Chris S., for pointing out this framework!) So far, so good. I ported over a bunch of the Linux SMART ioctls over to IOKit ....

One thing the Linux version of smartmontools does is send ioctls to the ATA devices to access the ATAIdentify structure. It heavily relies on this struct throughout the code to determine drive capabilities, model, etc. The raw BSD device drivers don't support these ioctls. Anyways - I worked with this stuff before in MacOS 9 & it was simply a matter of sending the appropriate ATAManager commands. I had a good dig through the list archives but I can't find anything on this subject.

My question: is there a framework for sending arbitrary ATA commands or something for accessing the familiar ATAIdentify structure?

Regards,

Pete C
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax: (408) 862-7577
email: email@hidden
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.