[stgt] binding portals to targets

ronnie sahlberg ronniesahlberg at gmail.com
Sun May 8 09:16:18 CEST 2011


List,

With the new multi-portal support now in tgtd, would it be useful or
be demand for being able to bind portals and targets?


Something like :
When you connect to a portal, by default you can access any target.
But IF there are targets bound to this portal, then only those targets
in the list for that portal can be logged into, or discovered.
Targets can be bound to multiple portals at the same time.


Binding could look something like this :
tgtadm --lld iscsi --op bind --mode portal -t 2 --param portal=127.0.0.1:3260

Which would mean that from now on, this is now the only target that
can be accessed through this particular portal.
This target can still be accessed through other portals, but since
this portal now has a target list, only this target and no other
targets can be accessed through this portal.
Of course it would be possible to add multiple targets to each portal.

Default for a portal : all targets can be reached.
If there are one or more targets bound to the portal, only those
targets can be reached and no other targets.



Similarly, if a portal has a list of specific targets bound to it, a
discovery session would only find those targets bound to this target
and none of the other targets.



Would this be useful and would anyone want this?
Im asking because it would be a neat feature  but I dont think I would
need/use it myself.
I have a prototype as a fun-hack, but it would require several hours
of work to get to a submit-patch state.
Im willing to finish the implementation if there is someone that
wants/needs/thinks it would be useful.


regards
ronnie sahlberg
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list