Hello community, here is the log from the commit of package iscsitarget for openSUSE:Factory checked in at Thu Mar 11 01:40:36 CET 2010. -------- --- iscsitarget/iscsitarget.changes 2009-06-12 15:21:58.000000000 +0200 +++ /mounts/work_src_done/STABLE/iscsitarget/iscsitarget.changes 2010-03-10 18:01:49.000000000 +0100 @@ -1,0 +2,71 @@ +Wed Mar 10 18:01:35 CET 2010 - ro@suse.de + +- fix build with 2.6.33 + +------------------------------------------------------------------- +Wed Mar 10 17:28:54 CET 2010 - ro@suse.de + +- update to 1.4.19 + o re-enable MaxSessions parameter + o code cleanups + o NOP-In support + o add notes about cross compilation to README + o fix ietadm manpage + o fix initiators/targets.allow bugs + o fix compiler warnings + o fix return value of session_add() + o update RPM specfile improving RedHat and SuSE compatibility + (based on a patch from Matthew Wild) + o update RELEASE NOTES + o fix session cleanup in case of -EPIPE during login + +- update to 1.4.18 + o improve IETs procfs support to allow a larger number of targets + o compatibility fix for 2.6.28 (independently also provided by Francois + Micaux) + o ignore SIGPIPE in ietd + o allow cleanup of stale targets in the kernel module + o support for a global worker threadpool instead of per target pools + (configurable via the worker_thread_pool_size module parameter) + o compatibility fixes for 2.6.30, 2.6.29 + o in cooperation with Xie Gang: Unit Attention support (thanks to Stefan + Rubner for spotting a bug) + o in cooperation with Shreyansh Jain: support for splitting text messages into + several PDUs, allowing more targets to be reported during discovery + (thanks to Cheng Rengquan for bugfixes) + o clean up all connections, sessions and targets in the kernel module if the + daemon is gone + o rework sense data handling, plugging memleaks + o fix valgrind warnings of uses of uninitialized variables + o support for Reject PDUs (thanks to FUJITA Tomonori for a bugfix) + o fix SERVICE ACTION IN: IET only supports READ CAPACITY 16, return sense data + for all others + o allow READ CAPACITY even if a LU is RESERVEd + o iSNS: report the actual target port instead of the default iSCSI port + o fix list corruption if target thread creation fails + o fix stopping of threads that have never been awakened before + o fix CHAP account handling bugs + o fix netlink socket cleanup + o code cleanups + o remove superfluous linefeed from debug messages + o enable runtime switching of debug levels for the kernel module and + provide description for the module's debug flags parameter + o return proper status class in case of login failures + o support more than one portal per target during discovery, and allow + configuration of the presented portals using targets.allow - previously only + the incoming interface was reported (thanks to David Shirley for + reporting a bug) + o deprecate initiators.allow + o regex based filtering in initiators.allow and targets.allow + o move config files to /etc/iet + o add version and author info and description to kernel module + o fix debug log levels + o fix ietd.conf permissions + o move kernel module to /lib/modules/<kver>/extra where it belongs + o improve init scripts, using common names and functions across distributions + o improve usage comments in ietd.conf + o specfile to build RPMs, including weak module support + o DKMS support + o Use the LU's sector size in the format mode page instead of defaulting to 512 + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- iscsitarget-0.4.17.tar.gz New: ---- iscsitarget-1.4.19.tar.gz iscsitarget-2.6.33.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iscsitarget.spec ++++++ --- /var/tmp/diff_new_pack.YTXU9c/_old 2010-03-11 01:40:27.000000000 +0100 +++ /var/tmp/diff_new_pack.YTXU9c/_new 2010-03-11 01:40:27.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package iscsitarget (Version 0.4.17) +# spec file for package iscsitarget (Version 1.4.19) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,12 +21,12 @@ Name: iscsitarget BuildRequires: kernel-syms module-init-tools openssl-devel Url: http://iscsitarget.sourceforge.net -License: GPL v2 only +License: GPLv2 Group: System/Daemons PreReq: %fillup_prereq %insserv_prereq /bin/cat /bin/rm AutoReqProv: on -Version: 0.4.17 -Release: 3 +Version: 1.4.19 +Release: 1 Requires: iscsitarget-kmp Summary: Open Source iSCSI Target with Professional Features Source: %{name}-%{version}.tar.gz @@ -35,7 +35,8 @@ Source3: services Patch0: iscsitarget-2.6.29.patch Patch1: iscsitarget-2.6.30.patch -Patch2: iscsitarget-0.4.17.diff +Patch2: iscsitarget-2.6.33.patch +Patch3: iscsitarget-0.4.17.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %suse_kernel_module_package -n %{name} -p %{S:2} kdump um @@ -53,7 +54,7 @@ %package KMP Group: System/Daemons -License: LGPL v2.1 or later +License: LGPLv2.1+ Summary: Open Source iSCSI Target with Professional Features %description KMP @@ -72,7 +73,8 @@ %setup %patch0 %patch1 -%patch2 -p0 +%patch2 +%patch3 -p0 echo "iscsi_trgt.ko yes" > kernel/Module.supported %build ++++++ iscsitarget-0.4.17.tar.gz -> iscsitarget-1.4.19.tar.gz ++++++ ++++ 6563 lines of diff (skipped) ++++++ iscsitarget-2.6.29.patch ++++++ --- /var/tmp/diff_new_pack.YTXU9c/_old 2010-03-11 01:40:27.000000000 +0100 +++ /var/tmp/diff_new_pack.YTXU9c/_new 2010-03-11 01:40:27.000000000 +0100 @@ -8,42 +8,9 @@ #include "iscsi.h" #include "iscsi_dbg.h" -@@ -154,14 +155,16 @@ - { - struct blockio_data *bio_data = volume->private; - struct block_device *bdev; -- int flags = LUReadonly(volume) ? MS_RDONLY : 0; - int err = 0; -+ fmode_t mode = FMODE_READ; -+ if (!LUReadonly(volume)) -+ mode |= FMODE_WRITE; - - bio_data->path = kstrdup(path, GFP_KERNEL); - if (!bio_data->path) - return -ENOMEM; - -- bdev = open_bdev_excl(path, flags, THIS_MODULE); -+ bdev = open_bdev_exclusive(path, mode, THIS_MODULE); - if (IS_ERR(bdev)) { - err = PTR_ERR(bdev); - eprintk("Can't open device %s, error %d\n", path, err); -@@ -323,9 +326,12 @@ - blockio_detach(struct iet_volume *volume) - { - struct blockio_data *bio_data = volume->private; -+ fmode_t mode = FMODE_READ; -+ if (!LUReadonly(volume)) -+ mode |= FMODE_WRITE; - - if (bio_data->bdev) -- close_bdev_excl(bio_data->bdev); -+ close_bdev_exclusive(bio_data->bdev, mode); - kfree(bio_data->path); - - kfree(volume->private); --- kernel/conn.c +++ kernel/conn.c -@@ -43,12 +43,12 @@ +@@ -43,7 +43,7 @@ switch (sk->sk_family) { case AF_INET: snprintf(buf, sizeof(buf), @@ -51,11 +18,4 @@ + "%pI4", &inet_sk(sk)->daddr); break; case AF_INET6: - snprintf(buf, sizeof(buf), -- "[%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x]", -- NIP6(inet6_sk(sk)->daddr)); -+ "[%pI6]", -+ &inet6_sk(sk)->daddr); - break; - default: - break; + snprintf(buf, sizeof(buf), "[%pI6]", ++++++ iscsitarget-2.6.30.patch ++++++ --- /var/tmp/diff_new_pack.YTXU9c/_old 2010-03-11 01:40:27.000000000 +0100 +++ /var/tmp/diff_new_pack.YTXU9c/_new 2010-03-11 01:40:27.000000000 +0100 @@ -8,13 +8,3 @@ #include "iscsi.h" #include "iscsi_dbg.h" -@@ -43,7 +44,9 @@ - if (!(proc_iet_dir = proc_mkdir("iet", init_net.proc_net))) - goto err; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) - proc_iet_dir->owner = THIS_MODULE; -+#endif - - for (i = 0; i < ARRAY_SIZE(iet_proc_entries); i++) { - ent = create_proc_entry(iet_proc_entries[i].name, 0, proc_iet_dir); ++++++ iscsitarget-2.6.33.patch ++++++ --- kernel/conn.c +++ kernel/conn.c @@ -43,7 +43,7 @@ switch (sk->sk_family) { case AF_INET: snprintf(buf, sizeof(buf), - "%pI4", &inet_sk(sk)->daddr); + "%pI4", &inet_sk(sk)->inet_daddr); break; case AF_INET6: snprintf(buf, sizeof(buf), "[%pI6]", --- kernel/file-io.c +++ kernel/file-io.c @@ -75,8 +75,7 @@ static int fileio_sync(struct iet_volume *lu, struct tio *tio) { struct fileio_data *p = lu->private; - struct inode *inode = p->filp->f_dentry->d_inode; - struct address_space *mapping = inode->i_mapping; + struct file *filp = p->filp; loff_t ppos, count; int res; @@ -88,7 +87,7 @@ count = lu->blk_cnt << lu->blk_shift; } - res = sync_page_range(inode, mapping, ppos, count); + res = generic_write_sync(filp, ppos, count); if (res) { eprintk("I/O error: syncing pages failed: %d\n", res); return -EIO; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org