[stgt] RFC, initial prototype to add add/delete/show portals to tgtadm/tgtd

ronnie sahlberg ronniesahlberg at gmail.com
Sun Apr 17 02:24:01 CEST 2011


Tomo, List,


This is not ready to be submitted yet, but I would like some review
and comments.
Attached is a patch to tgtd and tgtadm that adds support to add,
remove and show the portal configuration.

This would allow to add and remove portals from tgtd at runtime
without the need for shutting down and restarting tgtd any time
the portal configuration changes.


To operate on portals, I added a new mode to tgtadm/tgt :

Example use:

$ sudo ./usr/tgtadm --lld iscsi --op show --mode portal
Portal: 0.0.0.0:3260
Portal: [0::0]:3260

$ sudo ./usr/tgtadm --lld iscsi --op new --mode portal --param
portal=127.0.0.1:3262
$ sudo ./usr/tgtadm --lld iscsi --op show --mode portal
Portal: 127.0.0.1:3262
Portal: 0.0.0.0:3260
Portal: [0::0]:3260

$ sudo ./usr/tgtadm --lld iscsi --op delete --mode portal --param
portal=127.0.0.1:3262


Comments welcome.


regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo
Type: application/octet-stream
Size: 13114 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110417/df033d6b/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.gz
Type: application/x-gzip
Size: 3656 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110417/df033d6b/attachment-0001.bin>


More information about the stgt mailing list