Sean,

You are correct.  I had made a bad assumption in the logic that tried to map the device name (ad0,ad1) to
the channel/unit number (so I can use those as part of IOCTL to /dev/ata).  I just redid the logic and
committed a fix.  Hopefully it will show up on the anonymous CVS server soon.....SourceForge seems to
still be having some issues with CVS....

Ed

On Sun, 2003-10-12 at 00:59, Sean Kelly wrote:
On Sat, Oct 11, 2003 at 03:47:44PM -0400, Eduard Martinescu wrote:
>  The current CVS version of smartmontools
>  http://smartmontools.sourceforge.net now has support for FreeBSD.
...
>  Please try it out and send any problem reports to the smartmon-support
>  mailing list.

This is some seriously cool stuff, but I've run into one issue. It isn't
exactly a critical bug, but it was rather confusing.

My disk setup is as follows:
ad0: 57241MB <WDC WD600BB-00CAA0> [116301/16/63] at ata0-master UDMA100
acd0: CDRW <PLEXTOR CD-R PX-W4012A> at ata0-slave UDMA33
ad1: 57241MB <ST360021A> [116301/16/63] at ata1-slave UDMA100
ad2: 58644MB <IC35L060AVER07-0> [119150/16/63] at ata2-master UDMA100

However, when I use smartctl on /dev/ad1, it is trying to do stuff to
acd0:
edgemaster# ./smartctl -i /dev/ad1
=== START OF INFORMATION SECTION ===
Device Model:     PLEXTOR CD-R   PX-W4012A
Serial Number:    724212
Firmware Version: 1.01
SMART is only available in ATA Version 3 Revision 3 or greater.
SMART support is: Unavailable - Packet Interface Devices [this device:
CD/DVD] don't support ATA SMART

Similarly, attempts to use smartctl against /dev/ad2 fail as if there was
no such a disk.

I can reach my ad1 and ad2 disks by using /dev/ad3 and /dev/ad4 with
smartctl. So, you appear to have a problem getting the right drive from the
device name.

Otherwise, this stuff is cool.
--
Eduard Martinescu <martines@rochester.rr.com>