Skip to contentSkip to conversation

smartctl & ioctl translation

DISCUSSION Meelis Roos 3 participants 4 messages Apr 12, 2004 – Apr 17, 2004

lore
Share & tools
lore
#0 lore raw

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])
#1 lore raw
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.

#2 lore raw
In reply to Meelis Roos
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_TASK
HDIO_GET_IDENTITY
HDIO_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

#3 lore raw
In reply to Meelis Roos
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])