Files
scst/usr/stpgd/scst_on_stpg
Vladislav Bolkhovitin ae38d284e0 Explicit ALUA user space
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-11-06 03:40:37 +00:00

12 lines
433 B
Bash

#!/bin/bash
#
# Script invoked by SCST for processing a SCSI SET TARGET PORT GROUPS command
#
# Arguments: SCST_DEVICE_NAME (device name where this STPG command was
# received on), SCST_PREV_ALUA_STATE, SCST_ALUA_STATE,
# SCST_DEVICE_GROUP and SCST_TARGET_GROUP + environmental variables
# with the same names set
#
echo $SCST_ALUA_STATE >/sys/kernel/scst_tgt/device_groups/$SCST_DEVICE_GROUP/target_groups/$SCST_TARGET_GROUP/state