[Stgt-devel] [PATCH v3] iscsi: add setup_lun script
Fri Jan 4 01:52:39 CET 2008
On Thu, 03 Jan 2008 14:21:13 +0200
Erez Zilber <erezz at voltaire.com> wrote:
> FUJITA Tomonori wrote:
> > On Thu, 03 Jan 2008 09:08:31 +0200
> > Erez Zilber <erezz at voltaire.com> wrote:
> >> Here's a better version that also installs the script:
> >> Add a script that will create a target, add a device to
> >> the target and define the initiator that can connect to it.
> >> Signed-off-by: Erez Zilber <erezz at voltaire.com>
> >> ---
> >> usr/Makefile | 2 +-
> >> usr/scripts/setup_lun | 130 +++++++++++++++++++++++++++++++++++++++++++++++++
> >> 2 files changed, 131 insertions(+), 1 deletions(-)
> >> create mode 100644 usr/scripts/setup_lun
> >> diff --git a/usr/Makefile b/usr/Makefile
> >> index 6854057..16bd314 100644
> >> --- a/usr/Makefile
> >> +++ b/usr/Makefile
> >> @@ -51,7 +51,7 @@ CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fPIC
> >> LIBS += -lpthread
> >> -PROGRAMS += tgtd tgtadm
> >> +PROGRAMS += tgtd tgtadm scripts/setup_lun
> >> TGTD_OBJS += tgtd.o mgmt.o target.o scsi.o log.o driver.o util.o work.o \
> >> parser.o spc.o sbc.o mmc.o osd.o scc.o smc.o bs.o
> > If you install this, it would be name 'tgt-hoge'. If you don't like
> > it, I'm fine with this name.
> I don't understand? What do you mean by 'tgt-hoge'?
Oops, I meant that we would name this 'tgt-setup-lun'. It enables
users to easily find that this script is for tgt.
More information about the stgt