smartctl & ioctl translation
smartctl -a does not work on 2.6.5 sparc64 (Debian unstable). Does the kernel need some more ioctl32 translations or does smartmontools need a recompile against newer headers?
ioctl32(smartctl:3717): Unknown cmd fd(3) cmd(0000031e){00} arg(effe0790) on /dev/hda
Signature · 1 line
Meelis Roos ([email protected])
Quoted 3 lines · On Mon, 12 Apr 2004 11:01:56 +0300 (EEST) Meelis Roos <[email protected]> wrote:
smartctl -a does not work on 2.6.5 sparc64 (Debian unstable). Does the kernel need some more ioctl32 translations or does smartmontools need a recompile against newer headers?
I believe the former, can you look at the smartctl sources and let me know which ioctl command number macros it makes use of in it's ioctl() calls?
Thanks.
Quoted 4 lines · David S. Miller
On Mon, 12 Apr 2004 11:01:56 +0300 (EEST)
Meelis Roos <[email protected]> wrote:
Quoted 8 lines
Quoted 3 lines
smartctl -a does not work on 2.6.5 sparc64 (Debian unstable). Does the kernel need some more ioctl32 translations or does smartmontools need a recompile against newer headers?
I believe the former, can you look at the smartctl sources and let me know which ioctl command number macros it makes use of in it's
ioctl()calls?
For IDE drives:HDIO_DRIVE_TASKHDIO_GET_IDENTITYHDIO_DRIVE_CMD
For SCSI drives:SCSI_IOCTL_SEND_COMMAND
Meelis must be seeing this for IDE drives, not SCSI-- it seems there is no translation for HDIO_DRIVE_TASK (at least in my 2.4.23rc5 kernel and the lxr of 2.6.5). SCSI works fine.
E
Quoted 3 lines
Meelis must be seeing this for IDE drives, not SCSI-- it seems there is no translation for
HDIO_DRIVE_TASK(at least in my 2.4.23rc5 kernel and the lxr of 2.6.5). SCSI works fine.
Yes, Ultra 5 with original IDE hdd.
Signature · 1 line
Meelis Roos ([email protected])