[Stgt-devel] [PATCH v2] iscsi: add setup_lun script
Thu Jan 3 11:54:49 CET 2008
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.
> diff --git a/usr/scripts/setup_lun b/usr/scripts/setup_lun
> new file mode 100644
> index 0000000..e35d623
> --- /dev/null
> +++ b/usr/scripts/setup_lun
> @@ -0,0 +1,130 @@
> +# Copyright (C) Voltaire Ltd. 2001-2008. ALL RIGHTS RESERVED.
> +# This source code (the "Code") is a proprietary product of Voltaire Ltd.
> +# (the "Company") and all right, title, and interest in and to the Code,
> +# including all associated intellectual property rights, are and shall
> +# remain exclusively with the Company.
> +# The Code is provided "as is". To the maximum extent permitted by law,
> +# the Company disclaims any warranties of any kind, either expressed or
> +# implied, including, without limitation, implied warranties of
> +# merchantability, fitness for a particular purpose and non-infringement.
> +# The Company does not warrant that the Code will operate error free, or
> +# in an uninterrupted fashion or that it is compatible with any particular
> +# platform. In no event shall the Company be liable for any damages
> +# whatsoever (including, without limitation, incidental, direct, indirect,
> +# special and consequential damages, damages for loss of business profits,
> +# business interruption, loss of business information, or other pecuniary
> +# loss) arising out of the use or inability to use the Code, even if
> +# advised of the possibility of such damages.
> +# Author: Erez Zilber <erezz at voltaire.com>
Why did you change the license from GPL2?
If distribution people are ok with your license, I'll merge it. We
need to make sure that they can merge tgt into their distributions
without any problem.
More information about the stgt