IOCTL_SCSI_PASS_THROUGH fail with timeout

Hi,my win2k driver needs to send SCSI commmands directly to a SCSI targetdevice.Till now, I’v experimented only with IOCTL_SCSI_PASS_THROUGH whichworkedwith IDE drives. However, when I tried issuing it to SCSI targetdevice whichresides on a remote storage that is connected via fiber channel to mymachine,I am only successful with read commands while write commands alwaysfailswith a timeout error. (When trying the same thing from an application,theWIN32 error is:The semaphore timeout period has expired. ERROR_SEM_TIMEOUT).My question is what is wrong and why I keep getting timeouts on writecommandswhile read commands are successful. The devices are functioningcorrectly, and have file-system volumes on them. Only my PASS_THRUfails.I understand it is possible to build IRP_MJ_SCSI by myself, but I amafraidthat I will receive the same result.The HBA driver is QLOGIC 2300.Can someone help with this please.


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Have you tried increasing the TimeOutValue in the SCSI_PASS_THROUGH structure?


The personal opinion of
Gary G. Little
“eran borovik” wrote in message news:xxxxx@ntdev…
Hi,
my win2k driver needs to send SCSI commmands directly to a SCSI target
device.
Till now, I’v experimented only with IOCTL_SCSI_PASS_THROUGH which
worked
with IDE drives. However, when I tried issuing it to SCSI target
device which
resides on a remote storage that is connected via fiber channel to my
machine,
I am only successful with read commands while write commands always
fails
with a timeout error. (When trying the same thing from an application,
the
WIN32 error is:The semaphore timeout period has expired.
ERROR_SEM_TIMEOUT).
My question is what is wrong and why I keep getting timeouts on write
commands
while read commands are successful. The devices are functioning
correctly, and have file-system volumes on them. Only my PASS_THRU
fails.
I understand it is possible to build IRP_MJ_SCSI by myself, but I am
afraid
that I will receive the same result.
The HBA driver is QLOGIC 2300.

Can someone help with this please.

------------------------------------------------------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Try using IRP_MJ_SCSI.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: eran borovik
To: Windows System Software Devs Interest List
Sent: Tuesday, August 17, 2004 10:07 AM
Subject: [ntdev] IOCTL_SCSI_PASS_THROUGH fail with timeout

Hi,
my win2k driver needs to send SCSI commmands directly to a SCSI target
device.
Till now, I’v experimented only with IOCTL_SCSI_PASS_THROUGH which
worked
with IDE drives. However, when I tried issuing it to SCSI target
device which
resides on a remote storage that is connected via fiber channel to my
machine,
I am only successful with read commands while write commands always
fails
with a timeout error. (When trying the same thing from an application,
the
WIN32 error is:The semaphore timeout period has expired.
ERROR_SEM_TIMEOUT).
My question is what is wrong and why I keep getting timeouts on write
commands
while read commands are successful. The devices are functioning
correctly, and have file-system volumes on them. Only my PASS_THRU
fails.
I understand it is possible to build IRP_MJ_SCSI by myself, but I am
afraid
that I will receive the same result.
The HBA driver is QLOGIC 2300.

Can someone help with this please.


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage! — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send a blank email to xxxxx@lists.osr.com

This sounds familiar. Are you sure you’re setting the right direction?


James Antognini
Windows DDK Support

This posting is provided “AS IS” with no warranties, and confers no rights.

“eran borovik” wrote in message news:xxxxx@ntdev…
Hi,
my win2k driver needs to send SCSI commmands directly to a SCSI target
device.
Till now, I’v experimented only with IOCTL_SCSI_PASS_THROUGH which
worked
with IDE drives. However, when I tried issuing it to SCSI target
device which
resides on a remote storage that is connected via fiber channel to my
machine,
I am only successful with read commands while write commands always
fails
with a timeout error. (When trying the same thing from an application,
the
WIN32 error is:The semaphore timeout period has expired.
ERROR_SEM_TIMEOUT).
My question is what is wrong and why I keep getting timeouts on write
commands
while read commands are successful. The devices are functioning
correctly, and have file-system volumes on them. Only my PASS_THRU
fails.
I understand it is possible to build IRP_MJ_SCSI by myself, but I am
afraid
that I will receive the same result.
The HBA driver is QLOGIC 2300.

Can someone help with this please.

------------------------------------------------------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!