diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2010-01-27 16:12:05 -0600 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2010-03-22 17:32:06 -0500 |
commit | 8c24522b2ce48136d4eac0d1137685327bd3a212 (patch) | |
tree | ea17a38648a0a0dc017128db983a35d1291e4cf9 /usr/discoveryd.h | |
parent | d984c57aa084698488911d8a2ca94314666f685e (diff) | |
download | open-iscsi-8c24522b2ce48136d4eac0d1137685327bd3a212.tar.gz |
iscsid: have iscsid watch for new portals using sendtargets
This patch has iscsid do SendTargets to the addresses pointed to
discovery.daemon.sendtargets.addresses
iscsid.conf. It will do it every
discovery.daemon.sendtargets.poll_interval
seconds.
This is useful for setups where the target returns only the
valid portals and you want to log into all the portals returned.
If the target returns all portals, then this still works, but
it is a little loud when a login fails.
Notes:
- It will use the ifaces setup in /etc/iscsi/ifaces.
- For iscsi settings it will use the /etc/iscsi/iscsid.conf settings.
- It currently only logs into new targets. It does not remove old
ones. You have to run
iscsiadm -m session -r $SID -u
to remove stale sessions.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Diffstat (limited to 'usr/discoveryd.h')
-rw-r--r-- | usr/discoveryd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/discoveryd.h b/usr/discoveryd.h new file mode 100644 index 0000000..e68bd70 --- /dev/null +++ b/usr/discoveryd.h @@ -0,0 +1,7 @@ +#ifndef _DISC_DAEMON_H +#define _DISC_DAEMON_H + +extern void discoveryd_start_st(void); +extern void discoveryd_start_isns(void); + +#endif |