[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#658185: freebsd-9: freebsd-9 kernel + smartmontools: "error sending CAMIOCOMMAND ioctl: Inappropriate ioctl for device"



Package: kfreebsd-image-9.0-1-amd64
Version: 9.0-1
Severity: normal
File: freebsd-9

Hi!
 
I recently upgraded my Debian kFreeBSD installation from an 8.x kernel to the 9.0.1 kernel. After this was done, I could not use smartctl to check the SMART data of my hard drives any more.
 
Example:
root@debian:/# smartctl -a /dev/ad0
smartctl 5.41 2011-06-09 r3365 [GNU/kFreeBSD 9.0-1-amd64 x86_64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
error sending CAMIOCOMMAND ioctl: Inappropriate ioctl for device
Unable to get CAM device list
/dev/ad0: Unable to detect device type
Smartctl: please specify device type with the -d option.
Use smartctl -h to get a usage summary
 
Packages:
kfreebsd-image-9.0.1-amd64 9.0.1
smartmontools 5.41+svn3365-1
 
I found someone else experiencing the same problem on (non-Debian) FreeBSD: http://comments.gmane.org/gmane.os.freebsd.current/136418
Quote: "CAM ABI was changed right before RC1. The issue was mentioned in the Ken' announcement. The packages were obviously built with the old headers."

I originally reported this in the mail thread at http://lists.debian.org/debian-bsd/2012/01/msg00135.html , which contains a reply from Robert Millan stating:
"There's indeed an ABI problem.  You could try if rebuilding
smartmontools with latest kfreebsd-kernel-headers "fixes" the problem,
but that's most likely to break it for kfreebsd-8.  We'll need to add
some compat glue.

The ABI break is in SVN rev 225950 I think." 

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kfreebsd-image-9.0-1-amd64 depends on:
ii  devd           8.2+ds3-2
ii  freebsd-utils  8.2+ds3-2
ii  kbdcontrol     8.2+ds3-2
ii  kldutils       8.2+ds3-2

kfreebsd-image-9.0-1-amd64 recommends no packages.

kfreebsd-image-9.0-1-amd64 suggests no packages.

-- no debconf information



Reply to: