Hello community,
here is the log from the commit of package yast2-iscsi-server
checked in at Fri Apr 7 12:18:30 CEST 2006.
--------
--- yast2-iscsi-server/yast2-iscsi-server.changes 2006-04-05 17:56:31.000000000 +0200
+++ yast2-iscsi-server/yast2-iscsi-server.changes 2006-04-07 08:31:45.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Apr 7 08:26:27 CEST 2006 - mzugec@suse.cz
+
+- fixed #163999 - iscsi target - identifier contains '\n'
+
+-------------------------------------------------------------------
Old:
----
yast2-iscsi-server-2.13.13.tar.bz2
New:
----
yast2-iscsi-server-2.13.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-iscsi-server.spec ++++++
--- /var/tmp/diff_new_pack.L46CgE/_old 2006-04-07 12:18:22.000000000 +0200
+++ /var/tmp/diff_new_pack.L46CgE/_new 2006-04-07 12:18:22.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-iscsi-server (Version 2.13.13)
+# spec file for package yast2-iscsi-server (Version 2.13.14)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-iscsi-server
-Version: 2.13.13
+Version: 2.13.14
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-iscsi-server-2.13.13.tar.bz2
+Source0: yast2-iscsi-server-2.13.14.tar.bz2
prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen libxslt perl-XML-Writer popt-devel sgml-skel update-desktop-files yast2 yast2-devtools yast2-packagemanager-devel yast2-perl-bindings yast2-testsuite
Requires: yast2
@@ -29,7 +29,7 @@
%prep
-%setup -n yast2-iscsi-server-2.13.13
+%setup -n yast2-iscsi-server-2.13.14
%build
%{prefix}/bin/y2tool y2autoconf
@@ -64,6 +64,8 @@
%doc %{prefix}/share/doc/packages/yast2-iscsi-server
%changelog -n yast2-iscsi-server
+* Fri Apr 07 2006 - mzugec@suse.cz
+- fixed #163999 - iscsi target - identifier contains '\n'
* Wed Apr 05 2006 - mzugec@suse.cz
- fixed #157648 - when modify target, can edit LUN
* Wed Apr 05 2006 - mzugec@suse.cz
++++++ yast2-iscsi-server-2.13.13.tar.bz2 -> yast2-iscsi-server-2.13.14.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-server-2.13.13/VERSION new/yast2-iscsi-server-2.13.14/VERSION
--- old/yast2-iscsi-server-2.13.13/VERSION 2006-04-05 17:54:56.000000000 +0200
+++ new/yast2-iscsi-server-2.13.14/VERSION 2006-04-07 08:26:22.000000000 +0200
@@ -1 +1 @@
-2.13.13
+2.13.14
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-server-2.13.13/configure new/yast2-iscsi-server-2.13.14/configure
--- old/yast2-iscsi-server-2.13.13/configure 2006-04-05 17:52:06.000000000 +0200
+++ new/yast2-iscsi-server-2.13.14/configure 2006-04-07 08:19:41.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for yast2-iscsi-server 2.13.12.
+# Generated by GNU Autoconf 2.59 for yast2-iscsi-server 2.13.13.
#
# Report bugs to http://www.suse.de/feedback.
#
@@ -269,8 +269,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-iscsi-server'
PACKAGE_TARNAME='yast2-iscsi-server'
-PACKAGE_VERSION='2.13.12'
-PACKAGE_STRING='yast2-iscsi-server 2.13.12'
+PACKAGE_VERSION='2.13.13'
+PACKAGE_STRING='yast2-iscsi-server 2.13.13'
PACKAGE_BUGREPORT='http://www.suse.de/feedback'
ac_unique_file="RPMNAME"
@@ -728,7 +728,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-iscsi-server 2.13.12 to adapt to many kinds of systems.
+\`configure' configures yast2-iscsi-server 2.13.13 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -795,7 +795,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-iscsi-server 2.13.12:";;
+ short | recursive ) echo "Configuration of yast2-iscsi-server 2.13.13:";;
esac
cat <<\_ACEOF
@@ -908,7 +908,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-yast2-iscsi-server configure 2.13.12
+yast2-iscsi-server configure 2.13.13
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -922,7 +922,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-iscsi-server $as_me 2.13.12, which was
+It was created by yast2-iscsi-server $as_me 2.13.13, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1652,7 +1652,7 @@
# Define the identity of the package.
PACKAGE='yast2-iscsi-server'
- VERSION='2.13.12'
+ VERSION='2.13.13'
cat >>confdefs.h <<_ACEOF
@@ -1863,7 +1863,7 @@
-VERSION="2.13.12"
+VERSION="2.13.13"
RPMNAME="yast2-iscsi-server"
MAINTAINER="Michal Zugec "
@@ -2693,7 +2693,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by yast2-iscsi-server $as_me 2.13.12, which was
+This file was extended by yast2-iscsi-server $as_me 2.13.13, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -2748,7 +2748,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-iscsi-server config.status 2.13.12
+yast2-iscsi-server config.status 2.13.13
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-server-2.13.13/configure.in new/yast2-iscsi-server-2.13.14/configure.in
--- old/yast2-iscsi-server-2.13.13/configure.in 2006-04-05 17:52:00.000000000 +0200
+++ new/yast2-iscsi-server-2.13.14/configure.in 2006-04-07 08:19:34.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by y2autoconf - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-iscsi-server, 2.13.12, http://www.suse.de/feedback, yast2-iscsi-server)
+AC_INIT(yast2-iscsi-server, 2.13.13, http://www.suse.de/feedback, yast2-iscsi-server)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.12"
+VERSION="2.13.13"
RPMNAME="yast2-iscsi-server"
MAINTAINER="Michal Zugec "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-iscsi-server-2.13.13/src/IscsiServer.ycp new/yast2-iscsi-server-2.13.14/src/IscsiServer.ycp
--- old/yast2-iscsi-server-2.13.13/src/IscsiServer.ycp 2006-04-05 16:03:45.000000000 +0200
+++ new/yast2-iscsi-server-2.13.14/src/IscsiServer.ycp 2006-04-07 08:27:40.000000000 +0200
@@ -4,7 +4,7 @@
* Summary: IscsiServer settings, input and output functions
* Authors: Michal Zugec
*
- * $Id: IscsiServer.ycp 29726 2006-04-05 14:03:42Z mzugec $
+ * $Id: IscsiServer.ycp 29851 2006-04-07 06:27:34Z mzugec $
*
* Representation of the configuration of iscsi-server.
* Input and output routines.
@@ -139,6 +139,50 @@
return ret;
}
+boolean reloadServer(){
+if (Popup::YesNo(_(
+"If changes have been made, the iSCSI target is not able \n"
+"to reload current configuration. It can only restart.\n"
+"When restarting, all sessions are aborted.\n"
+"Restart the iscsitarget service?"
+))) Service::Restart("iscsitarget");
+ else {
+/*
+ map changes = IscsiServerFunctions::getChanges();
+ y2internal("changes %1", changes);
+
+ foreach(string row, changes["del"]:[], {
+ y2internal("to delete %1", row);
+ string target=((map)SCR::Execute(.target.bash_output,
+ "cat /proc/net/iet/volume|grep $TARGET", $["TARGET":row]))["stdout"]:"" ;
+ string to_delete = splitstring( splitstring(target, " ")[0]:"", ":")[1]:"";
+ SCR::Execute(.target.bash_output, "ietadm --op delete --tid=$TID", $["TID":to_delete]);
+ });
+
+ foreach(string row, changes["add"]:[], {
+ y2internal("to add %1", row);
+ SCR::Execute(.target.bash_output, "ietadm --op new --tid=0 --params Name=$NAME", $["NAME":row]);
+ string target=((map)SCR::Execute(.target.bash_output,
+ "cat /proc/net/iet/volume|grep $TARGET", $["TARGET":row]))["stdout"]:"" ;
+ string to_add = splitstring( splitstring(target, " ")[0]:"", ":")[1]:"";
+ y2internal("to add %1", to_add);
+ list<string> lun = [];
+ foreach( map conf_row, (list