Operating System - HP-UX
1830895 Members
2671 Online
110017 Solutions
New Discussion

Error with SIOC_IO on an Itanium server

 
Stephen Keane
Honored Contributor

Error with SIOC_IO on an Itanium server

I'm trying to write some software that will probe an entry in /dev/rdsk and determine whether it is a CD/DVD drive and if so what sort of capabilities it has (e.g. is it a CD-ROM or a CD-Writer)

I have written a program that works OK on the limited amount of PA-RISC hardware I have available, but refuses to work on the (one) Itanium box I have access to.

I am using the SIOC_IO ioctl call on the /dev/rdsk/c0t0d0 device and passing a MODE SENSE (10) command with a Page Code of 0x2A (i.e. MM Capabilities and Mechanical Status Page).

When I run this on PA-RISC everything is fine. When I run it on Itanium I get a CDB status of SCTL_INVALID_REQUEST.

/dev/rdsk/c0t0d0 is a TEAC DV-28E-V on the Itanium server.

If I instead do an INQUIRY, that works fine. So it's something specific about the MODE SENSE (10) that is causing the issue, rather than a general SCSI issue.

Itanium is running 11.23
PA-RISC is running 11.11