diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-09 13:01:09 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-09 13:01:09 +0000 |
commit | 4eec651ec388a7406d989f93aef0d62f748080fc (patch) | |
tree | 7fce56b0e4a689fc51e535b741025162dc8c5f61 /usr.sbin/ctld/ctld.h | |
parent | 037bd5af5746c3f20b892933dccfc78a245f81a4 (diff) | |
download | FreeBSD-src-4eec651ec388a7406d989f93aef0d62f748080fc.zip FreeBSD-src-4eec651ec388a7406d989f93aef0d62f748080fc.tar.gz |
Add support for sending redirections to iSCSI target.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index e7b3642..600bd30 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -117,6 +117,7 @@ struct portal_group { int pg_discovery_filter; bool pg_unassigned; TAILQ_HEAD(, portal) pg_portals; + char *pg_redirection; uint16_t pg_tag; }; @@ -151,6 +152,7 @@ struct target { struct portal_group *t_portal_group; char *t_name; char *t_alias; + char *t_redirection; }; struct isns { @@ -301,6 +303,8 @@ int portal_group_add_listen(struct portal_group *pg, const char *listen, bool iser); int portal_group_set_filter(struct portal_group *pg, const char *filter); +int portal_group_set_redirection(struct portal_group *pg, + const char *addr); int isns_new(struct conf *conf, const char *addr); void isns_delete(struct isns *is); @@ -312,6 +316,8 @@ struct target *target_new(struct conf *conf, const char *name); void target_delete(struct target *target); struct target *target_find(struct conf *conf, const char *name); +int target_set_redirection(struct target *target, + const char *addr); struct lun *lun_new(struct target *target, int lun_id); void lun_delete(struct lun *lun); |