From 30cfdfd07909a40fb1c0bd128a97f06a51150125 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 3 May 2012 09:55:41 +0000 Subject: [PATCH] ib_srpt, Testing.txt: Add a test git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4277 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Testing.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/srpt/Testing.txt b/srpt/Testing.txt index 0e82d8fe8..2f8374e38 100644 --- a/srpt/Testing.txt +++ b/srpt/Testing.txt @@ -156,3 +156,16 @@ Index: srpt/src/ib_srpt.c not list any kernel threads) and that no sessions remain (output of "ls /sys/kernel/scst_tgt/targets/ib_srpt/*/sessions" must be empty) and that the amount of free memory remains the same. + +* Run this script on the target to verify that active sessions are closed + properly when a target is disabled: + e=1 + while true; do + echo $e + for f in /sys/kernel/scst_tgt/targets/ib_srpt/*/enabled; do + echo $e > $f + done + e=$((1-e)) + sleep 10 + done + While this script is running, repeatedly try to log in from another system.