mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6579 d57e44dd-8a1f-0410-8b47-8ef2f437770f
12 lines
433 B
Bash
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
|