Skip to content

Some basic shell scripts to play with the Linux target subsystem

License

Notifications You must be signed in to change notification settings

vdonnefort/target-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

target-scripts

Basic shell scripts to play with the Linux target subsystem.

target-export-device

The preferred way to create an iSCSI target on Linux is to use targetcli. However, in some situations, targetcli may not be available (for instance, in an initramfs which is too small to contain a Python interpreter).

target-export-device is a simple shell script to export a block device as an iSCSI target:

$ target-export-device /dev/sdb
Target iqn.2003-01.org.linux-iscsi.hostname:sdb has been created

The target created by target-export-device contains a single LUN and a single portal group. There is no ACL: all initiators can connect to the target and write to the LUN. Thus, the script should only be used for testing purposes.

About

Some basic shell scripts to play with the Linux target subsystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%