[Stgt-devel] [PATCH] iSNS support
FUJITA Tomonori
fujita.tomonori
Sat Apr 21 12:35:55 CEST 2007
From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Subject: [Stgt-devel] [PATCH] iSNS support
Date: Sun, 15 Apr 2007 22:42:02 +0900
> Somehow I need iSNS in tgt now.
>
> I know that IET iSNS code has some problems (e.g. can't handle errors
> properly), however, I just modified it for tgt. It needs to be fixed
> later on.
>
> Before I apply this, I need to find how tgt supports iSNS
> configurations; tgtd boot options or via tgt.
>
> Note that this patch requires you to modify the code to configure the
> iSNS server address (see usr/iscsi/transport.c).
Merged.
Here are some examples:
root at lilac:~# ./tgt/usr/tgtadm --lld iscsi --op show --mode sys
iSNS:
iSNS=Off
iSNSServerIP=
iSNSServerPort=3205
iSNSAccessControl=Off
root at lilac:~# ./tgt/usr/tgtadm --op update --mode sys --name iSNSServerIP -v 192.168.11.133
root at lilac:~# ./tgt/usr/tgtadm --op update --mode sys --name iSNS -v On
root at lilac:~# ./tgt/usr/tgtadm --lld iscsi --op show --mode sys
iSNS:
iSNS=On
iSNSServerIP=192.168.11.133
iSNSServerPort=3205
iSNSAccessControl=Off
Now you are ready to add targets.
TODO:
- once you enable iSNS, you can't disable it.
- you need to enable iSNS before adding targets.
- stop reading from sockets synchronously
More information about the stgt
mailing list