Add a test that we reply to NOPs from the target

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-04-16 08:16:58 -07:00
parent ec4eb766c7
commit e978232447
4 changed files with 276 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ TGTURL=iscsi://${TGTPORTAL}/${IQNTARGET}/1
start_target() {
# Setup target
echo "Starting iSCSI target"
${TGTD} --iscsi portal=${TGTPORTAL},nop_interval=3,nop_count=3
${TGTD} --iscsi portal=${TGTPORTAL},${1}
sleep 1
${TGTADM} --op new --mode target --tid 1 -T ${IQNTARGET}
${TGTADM} --op bind --mode target --tid 1 -I ALL