[stgt] [PATCH 0/5] Add dynamic redirection capability

Chandra Seetharaman sekharan at us.ibm.com
Sat Sep 18 03:01:42 CEST 2010

Hello All,

This is a resend of the patches sent on 09/01/2010:

I added changes based on Tomo's suggestions.
Currently, when a initiator tries to login to a target it can be redirected
to a different portal. But, Redirect portal is static. i.e the user has to
define the redirect portal for a target and _all_ the login requests for that
target will be redirected to the specified portal.

In order to provide load balancing capability, it will be better to have
"dynamic redirection". This is envisioned as:
	- user defines an external program that takes initiator's address
	  (in ipv4 or ipv6 format)
	- user defines a "RedirectCallback" parameter for a target
	  # tgtadm --op update --mode target --tid 1 --name RedirectCallback \
						--value /usr/local/bin/redirect
	- When a initiator tries to login to target tid, user defined program
	  will be invoked with the target name and the initiator's ip address
	  and it is expected to return a triplet defining the
	  redirect portal, in the format of
	  example: ""
	- Initiator will be redirected to the portal returned by the user
	  defined program.

Following set of patches provide the feature. Please review and provide your

Thanks & Regards,


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