While using the MODE SENSE command how does one calculate the
"Allocation Length" MSB, LSB, the LUN no. and the length of the data
returned by the command.
Kindly let me know.
Thanks and Regards,
It is quite easy ... I need it because I wrote an IDE Simulator forQuote:> While using the MODE SENSE command how does one calculate the
> "Allocation Length" MSB, LSB, the LUN no. and the length of the data
> returned by the command.
First of all have a look at my source code available at
extract it and have a look at frontend/umide.h and frontend/simulator/umide.c
get this! Acro Page Count 121; real page count 103; also grep the whole thing to
find strings matching 'MODE SENSE 10'
If unsure always refer to the Linux Kernel ... Than look at www.t10.org and
www.t11.org ... if there is nothing try google ...
any questions left? ... drop me an email ...
Thomas Glanzmann ++49 (0) 9131 85-27574 Department of Computer Science III
Martensstrasse 3 D-91058 Erlangen Germany University of Erlangen-Nuremberg
I was hoping someone out there could help me with the following problem:
I'm trying to issue a mode sense to a RAID controller hanging off an
HP-PB FWD SCSI 28696 adapter (HP 9000 E25 Model 800, HP-UX 10.10) using
the SIOC_IO ioctl command and the sctl_io structure. However, I keep
getting an "Invalid Argument" errno = 22 error.
I've tried numerous approaches to no avail (0x0'ing the entire structure,
filling in my cdb according to standard 6-byte/10-byte mode page requests,
etc.) However, I have been able to do a SCSI inquiry using the
SIOC_INQUIRY ioctl command and the inquiry_2 structure.
Obviously I'm missing something here. Can someone please help? Thanks -