Alexander Zangerl a écrit :
Package: hddtemp
Version: 0.3-beta12-12
Severity: important
in version 0.3beta12-12 detection and querying of my
scsi disks works fine, -16 only reports this:
# /hddtemp /dev/sda
/dev/sda: unknown: S.M.A.R.T. not available
# hddtemp -D /dev/sda
================= hddtemp 0.3-beta12 ==================
Model: unknown
strace with the broken -16 version:
open("/dev/sda", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x5386, 0xeffff65c) = 0
ioctl(3, 0x2285, 0xeffff538) = -1 EINVAL (Invalid argument)
ioctl(3, 0x30d, 0x25188) = -1 EINVAL (Invalid argument)
ioctl(3, 0x5386, 0xeffff88c) = 0
ioctl(3, 0x2285, 0xeffff7b0) = -1 EINVAL (Invalid argument)
ioctl(3, 0x2285, 0xeffff198) = -1 EINVAL (Invalid argument)
close(3) = 0
strace with the working -12 version:
open("/dev/sda", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, 0x30d, 0x28fe0) = -1 EINVAL (Invalid argument)
ioctl(3, 0x5386, 0xeffff89c) = 0
ioctl(3, 0x1, 0xeffff790) = 0
ioctl(3, 0x1, 0xeffff0e0) = 0
ioctl(3, 0x1, 0xeffff0e0) = 0
ioctl(3, 0x1, 0xeffff0e0) = 0
ioctl(3, 0x1, 0xefffefb0) = 0
ioctl(3, 0x1, 0xefffefb0) = 0
this is on an ultrasparc (64bit kernel, 32bit userland) with
2.4.26 as kernel. it looks like the fix for #292205
makes hddtemp fail on 2.4.x.
When you say fail on 2.4.x, do you have tested it on 2.6? Actually I
only tested my code on a 2.6 kernel. If the SG_IO ioctl is not available
on a 2.4 kernel, the kernel guys are doing very bad job...
Bye,
Aurelien
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian GNU/Linux developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]