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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: foo
Description: Binary data

Attachment: foo.gz
Description: GNU Zip compressed data


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux