Nice work! Thank you very much for doing this.
(My first comment on your code: the second line of os_darwin.c should say
'os_darwin.c' not 'os_generic.c'.)
I'd like to invite you to become one of the smartmontools developers, and
to check os_darwin.[hc] into CVS. Please also update CHANGELOG and
[If you say 'yes', the only think I'll need is a SourceForge username. If
you don't already have a SourceForge account, you can get one here:
On Wed, 14 Jul 2004, Geoff Keating wrote:
> I wrote a quick darwin_os.c using the Panther APIs for accessing SMART=20
> information. It was interesting, mostly because of all the trouble I=20
> found. I attach it below.
> There's lots of stuff it doesn't support. They fall into three=20
> - Could be implemented, but hasn't been done yet:
> -=A0Listing available devices
> - checking the power mode (I think)
> - support for SCSI (I think)
> - support for Escalade controllers (maybe)
> - Can't be implemented easily without more OS support:
> - running immediate offline, conveyance, or selective tests
> - running any test in capture mode
> - aborting tests
> - switching on automatic offline testing
> - Are implemented, but don't work due to OS bugs:
> - switching off SMART (switching *on* works fine)
> - switching off auto-save (but why would you want to?)
> - running the short test (that leaves you with only the extended test)
> The last set have been filed in Apple's bug tracking system and so=20
> hopefully will be fixed.
> However, some things do work well. All the informational output is=20
> available, unless you want something that only an offline test updates.=
> I even have a new drive for the database; my laptop has a=20
> small-form-factor Hitachi drive.