IOCTL_SCSI_PASS_THROUGH fail with timeout

IOCTL_SCSI_PASS_THROUGH fail with timeout

Post by eranborovi » Tue, 17 Aug 2004 22:51:44


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.