From bc218011431c2432a8fab5bf837e3f6f1dfb4eea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 14 Aug 2022 10:51:29 +0200 Subject: [PATCH] - up to 3.0.60, still does not build on kernel 5.15+ --- clean-ifdefs.patch | 2 +- kernel-5.12.patch | 2 +- lin_tape.fixlist | 36 +++++++++++++++++++++++++++++++++--- lin_tape.spec | 6 +++--- 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/clean-ifdefs.patch b/clean-ifdefs.patch index d08428e..04159a6 100644 --- a/clean-ifdefs.patch +++ b/clean-ifdefs.patch @@ -178,7 +178,7 @@ diff -ur lin_tape-3.0.18/pfo.h lin_tape-3.0.18-ifdefs/pfo.h @@ -64,9 +64,6 @@ ("IBM Tape Drives and Libraries"); MODULE_LICENSE("GPL"); - MODULE_VERSION("3.0.57"); + MODULE_VERSION("3.0.60"); -#if defined(SLESVERSION) -MODULE_INFO(supported, "external"); -#endif // defined diff --git a/kernel-5.12.patch b/kernel-5.12.patch index bf89048..458b6a7 100644 --- a/kernel-5.12.patch +++ b/kernel-5.12.patch @@ -23,7 +23,7 @@ diff -ur lin_tape-3.0.56/lin_tape_scsi_config.h lin_tape-3.0.56-5.12/lin_tape_sc -MODULE_SUPPORTED_DEVICE - ("IBM Tape Drives and Libraries"); MODULE_LICENSE("GPL"); - MODULE_VERSION("3.0.57"); + MODULE_VERSION("3.0.60"); /* driver parameters */ diff -ur lin_tape-3.0.56/lower.c lin_tape-3.0.56-5.12/lower.c --- lin_tape-3.0.56/lower.c 2020-12-07 05:40:22.000000000 +0100 diff --git a/lin_tape.fixlist b/lin_tape.fixlist index 1ec4148..337eaf7 100644 --- a/lin_tape.fixlist +++ b/lin_tape.fixlist @@ -1,13 +1,43 @@ Fixlist for Linux IBM Tape Device Driver (lin_tape) -(C) Copyright IBM Corporation 2007-2019 +(C) Copyright IBM Corporation 2007-2022 Level Date Description --------------------------------------------------------------- -3.0.52 03/17/2020 - Initial support for RHEL 8.1 (min. kernel version 4.18.9.147) +3.0.60 07/08/2021 - Initial support for RHEL 8.6 (min. kernel 4.18.0-372 (only on x86_64 and ppc64le) + - New TSM IOCTL +3.0.59 01/26/2021 - Initial support for RHEL 8.5 + 11/11/2021 - Fix for passthru s/g buffers on read/write + - Fix for st crash on unsupported cmd + - Removed excesive prints for get timeouts + - Support for LTO9 +3.0.58 10/25/2021 - New lin_tape_ignoreOEM parameter + - Fix for crash on join driver st interface buffer >= 2MB + - Removed timouts initialization table from attachment to avoid delays on device becoming ready + - CPF change to attempt a max of 2 retries when hardware error +3.0.57 08/30/2021 - Initial support for SLES 15 SP3 (min. kernel 5.3.18-57 Power, Intel, System Z) + 07/26/2021 - Initial support for RHEL 8.4 (min. kernel 4.18.0-305 x86_64, ppc64le, s390x) + - Changer to retry abort and becoming ready state + - CPF improvements + - Fix for memory leak + - Not to retry rimeouts request on invalid request +3.0.56 02/12/2021 - Initial support for RHEL 8.3 (min. kernel 4.18.0-240 x86_64 and Power) + 12/31/2020 - Initial support for RHEL 7.9 (min. kernel 3.10.0-1160 x86_64 and Power) + - Enhancement to allow multiple changer open handles during critical IO + - Removed recommended tmo parameters warnings + - Fix for auto timeout retrieval on re-discovery failing command for timout retrieval when successful on initial discovery +3.0.55 07/31/2020 - Initial support for SLES 15 SP2 (min. kernel version 5.3.18-24.15.1) + - Autotime retrieval + - Fix on passthru failover on changer from invalid request + - RAO for LTO +3.0.53 06/02/2020 - Initial support for RHEL 7.8 (min. kernel version 3.10.0-1127.8.2 on x86_64 and Power and 4.14.0-115.el7a on Power9) + - Initial support for RHEL 8.2 (min. kernel version 4.18.0-193 x86_64 and Power) + - Initial support for Ubuntu 18.04.4 (min kernel version 5.3.0-46 only on ppc64le and x86_64) + - Removed line space at proc output +3.0.52 03/17/2020 - Initial support for RHEL 8.1 (min. kernel version 4.18.9.147) - Initial support for SLES 12 SP5 (min. kernel version 4.12.14-122) - Workaround for scsi request not detecting/reporting path down on RHEL 8.x -3.0.51 02/21/2020 - Fix for keeping track of reservation after failover +3.0.51 02/21/2020 - Fix for keeping track of reservation after failover - Fix for sg lock on RHEL7 - Fix for possible lock on device unconfig - Fix for drive dumps file names diff --git a/lin_tape.spec b/lin_tape.spec index 975cbf6..d5d54cd 100644 --- a/lin_tape.spec +++ b/lin_tape.spec @@ -5,16 +5,16 @@ # nothing to be placed to debuginfo package %define _enable_debug_packages 0 -%define rel 2 +%define rel 1 %define pname lin_tape Summary: IBM Tape SCSI Device Driver for Linux Name: %{pname}%{_alt_kernel} -Version: 3.0.57 +Version: 3.0.60 Release: %{rel}%{?_pld_builder:@%{_kernel_ver_str}} License: GPL v2/LGPL Group: Base/Kernel Source0: %{pname}-%{version}.tgz -# Source0-md5: 63284cab941f80eeab7cfe64c3e74f12 +# Source0-md5: 943a08365a235d32c05e19d1da2a4044 Source1: %{pname}.fixlist Patch0: use-module-dir.patch Patch1: clean-ifdefs.patch -- 2.44.0