Actually, I thought I had code in there to handle this case.

The implementation of ata_command_interface() has conditional compilation code that should check for the existence of "ATAREQUEST", which was added post FreeBSD 5.1  If not found, it should print out a warning indicating that the kernel version is not supported.

I happen to have a VMWare instance with FreeBSD 4.7, and will attempt to improv the support (in terms of detecting and reporting incompatibilities).


On Wed, 2004-03-10 at 12:57, Frédéric L. W. Meunier wrote:
You need to run it on 5.x. See the documentation

Since we always get such reports (and there are others at,
can't something be added to smartctl and smartd to report that
it only supports 5.x ?

On Wed, 10 Mar 2004, Roman Danielis wrote:

> I compile smartmontools 5.30 on FreeBSD 4.7 by means of ports.
> When I run '/usr/local/sbin/smartctl -i /dev/ad0' it reports this:
> Smartctl open device: /dev/ad0 failed: Inappropriate ioctl for device
> I use this filesystems:
> /dev/ad0s1a   6727032  4804188 1384682    78%    /
> /dev/ad2s1e  76926344 64971022 5801216    92%    /vol1
Eduard Martinescu <>