AIX SCSI standard Inquiry with ioctl and STIOCMD.
I have a problem on AIX 5.2/5.3 with an ioctl call.
I'm trying to obtain the result of a standard SCSI INQUIRY on different
It's OK with IBM LTO drives but not with SUN/STK 9940 or T10000 drives.
The error code from ioctl call is EFAULT (14) Bad address.
ioctl man page says that EFAULT is for :
EFAULT argp references an inaccessible memory area.
I don't understand why the same (universal) command works for LTO and
not for other drives. Perhaps because drivers are not the same : Atape
for LTO and Other SCSI Tape for 9940 / T10000 ?
Or is it from the code ?
#define INQUIRY_SIZE 96
char *inquiry=(char*) malloc(INQUIRY_SIZE*sizeof(char));
struct sc_iocmd cmdio;
.... Openx ...
memset(&cmdio, 0, sizeof(struct sc_iocmd));
memset(inquiry, 0, INQUIRY_SIZE*sizeof(char));
ioctlreturn = ioctl(rmtfd, STIOCMD, &cmdio);
.... Error handling ...
Thanks to all.
Best software for black-SEO and increase Google PR
This unique software pack can EVERYTHING.
[b][color=green] + mass post threads and messages on forums, blogs, guestbooks, boards, bulletins
+ mass send PM (personal messages) to ALL users on thouthands forums [u]simultaneously[/u] (multi-threading)
+ automatically register e-mail accounts on GMAIL.Com and other email services
+ automatically break CAPTCHAs - you see, this forum has captcha on registering, but it's was breaked ;)
+ automatically break text captchas as "2+2=?", "what color is sky?" etc.
+ have a lot of tools for links databases processing and analysing
+ automatically confirm all links from e-mail account
+ built-in "question-answer" system, mass post-editing system
+ a lot of other features
Name of this program - [b]XRumer 5.0 Palladium[/b]
Not XRunner, not XRoomer, not xrumer - but [b]XRumer[/b].
(versions XRumer 2.9 and XRumer 3.0 are too old)
Just ask Google! ;)