Timeouts: Fix bugs in scsi task timeout code
Add a test to verify the pdu timeout handling. Fix numerous bugs in the timeout handling. It was really broken. Add test for non-SCSI task PDUs too and verify they works. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
17
tests/test_2100_timeout.sh
Executable file
17
tests/test_2100_timeout.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./functions.sh
|
||||
|
||||
echo "Basic iSCSI Timeout test"
|
||||
|
||||
start_target
|
||||
create_lun
|
||||
|
||||
echo -n "Test that timeouts trigger when we get no reply to an iSCSI PDU..."
|
||||
./prog_timeout -i ${IQNINITIATOR} iscsi://${TGTPORTAL}/${IQNTARGET}/1 || failure
|
||||
success
|
||||
|
||||
shutdown_target
|
||||
delete_lun
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user