#!/bin/sh

modprobe scst
modprobe scst_vdisk

echo "open vdisk0 /dev/sdb BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk1 /dev/sdc BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk2 /dev/sdd BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk3 /dev/sde BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk4 /dev/sdf BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk5 /dev/sdg BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk6 /dev/sdh BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk7 /dev/sdi BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk8 /dev/sdj BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk9 /dev/sdk BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk10 /dev/sdl BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk11 /dev/sdm BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk12 /dev/sdn BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk13 /dev/sdo BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "open vdisk14 /dev/sdp BLOCKIO" > /proc/scsi_tgt/vdisk/vdisk
echo "add vdisk0 0" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk1 1" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk2 2" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk3 3" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk4 4" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk5 5" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk6 6" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk7 7" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk8 8" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk9 9" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk10 10" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk11 11" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk12 12" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk13 13" > /proc/scsi_tgt/groups/Default/devices
echo "add vdisk14 14" > /proc/scsi_tgt/groups/Default/devices

modprobe ib_srpt

echo "add "mgmt"" > /proc/scsi_tgt/trace_level
echo "add "mgmt_dbg"" > /proc/scsi_tgt/trace_level
echo "add "out_of_mem"" > /proc/scsi_tgt/trace_level

