Skip to content

Commit

Permalink
Merge pull request #24 from truenas/NAS-126731-23.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Jan 31, 2024
2 parents ac2a447 + 7d4145e commit d23ed0b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scstadmin/init.d/scst
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@ stop_scst() {
return 1
fi
# Disable iSCSI
if [ -f /sys/kernel/scst_tgt/targets/iscsi/enabled ]; then
echo 0 > /sys/kernel/scst_tgt/targets/iscsi/enabled
fi
# Turn off any cluster_mode in parallel
for cm in /sys/kernel/scst_tgt/devices/*/cluster_mode ; do
echo 0 > "$cm" &
done
wait
unload_scst
}
Expand Down

0 comments on commit d23ed0b

Please sign in to comment.