1
0
multipath-tools/multipath-tools.spec

310 lines
9.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package multipath-tools
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 639755 from home:mwilck:branches:Base:System - Update to version 0.7.7+136+suse.19bb285: Not-yet-merged bug fixes from upstream, and SUSE bug fixes: * multipathd: try SCSI persistent reservations for SCSI only * libmultipath: allow sysfs_pathinfo to return SKIPPED (bsc#1098458) * libmultipath: Fixup updating paths (bsc#1110418) * multipathd: fix memory leak on error in configure (bsc#1110418) * multipathd: remove useless check and fix format * multipathd: minor fixes (bsc#1110418) * multipathd: function return value tweaks (bsc#1110418) * multipath: fix max array size in print_cmd_valid (bsc#1110418) * libmutipath: don't use malformed uevents (bsc#1110418) * libmultipath: fix null dereference int alloc_path_group (bsc#1110418) * libmultipath: fix memory issue in path_latency prio (bsc#1110418) * libmultipath: remove unused code * libmultipath: _install_keyword cleanup * libmultipath: fix length issues in get_vpd_sgio (bsc#1110418) * libmultipath: fix set_int error path * multipathd: decrease log level of uevent messages (bsc#1110586) * multipathd: fix version check for DM_DEV_ARM_POLL ioctl (bsc#1110587) * libmultipath: pathinfo: skip hidden devices (bsc#1110586) * libmultipath: nvme: shorter topology output * libmultipath: nvme: fix path detection for kernel 4.16 (bsc#1091112) * libmultipath: fix gcc 8.1 "truncated output" warnings (bsc#1099007) * (lib)mpathpersist: use O_RDONLY file descriptors (bsc#1093220) * libmpathpersist: fix byte swapping for big endian systems (bsc#1099036) * multipath-tools/tests: add tests for get_unaligned_beXX (bsc#1099036) * libmultipath: add (get|put)_unaligned_be64 (bsc#1099036) * libmpathpersist: fix stack overflow in mpath_format_readfullstatus() (bsc#1099007) * libmpathpersist: fix typo in mpath_format_readfullstatus (bsc#1099007) OBS-URL: https://build.opensuse.org/request/show/639755 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=166
2018-10-03 15:02:51 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
%global _lto_cflags %{nil}
# multipath-tools auto-detects support for -D_FORTFY_SOURCE.
# This will lead to a compilation error if the distro overrides
# -D_FORTIFY_SOURCE in optflags, unless we precede it with -U
%global mp_optflags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=[0-9]/-U_FORTIFY_SOURCE &/')
# Whether to build libdmmp - default YES
%bcond_without libdmmp
# Whether to run tests - default YES
%bcond_without check
# This should match the version in libdmmp/Makefile
Accepting request 619018 from home:mwilck:branches:Base:System - Update to version 0.7.7+70+suse.4a5941e: * libmultipath: change partition_delimiter default to "-part" (bsc#1073622, bsc#1056526) * change default for find_multipaths to "greedy" (bsc#1099054) * libmultipath: allow distributions to change partition_delim default (bsc#1073622, bsc#1056526) - Update to version 0.7.7+67+suse.a7d1e14: - RBD/RADOS backend support has been removed upstream remove support for it in openSUSE, too (boo#1099037) - libdmmp version has changed to 0.2.0 - New patches not yet upstream: * multipathd: fix mpp->hwe handling on path removal (boo#1099028) * libmultipath: print correct default for delay_*_checks (boo#1099026) * libmultipath: avoid error messages from RDAC check (bsc#1075539) * (lib)mpathpersist: use O_RDONLY file descriptors (bsc#1093220) * libmpathpersist: fix byte swapping for big endian systems (bsc#1099036) * multipath-tools/tests: add tests for get_unaligned_beXX (bsc#1099036) * libmultipath: add (get|put)_unaligned_be64 (bsc#1099036) * libmpathpersist: fix stack overflow in mpath_format_readfullstatus() (bsc#1099007) * multipathd: fix buffer size in cli_getprkey (bsc#1099028) * libmultipath: fix gcc 8.1 "truncated output" warnings (bsc#1099007) * libmpathpersist: fix typo in mpath_format_readfullstatus (bsc#1099007) * libmpathpersist: remove duplicate test in readfullstatus (bsc#1099007) - SUSE specific patches preserved: * multipath.rules: temporary rule to obtain ID_WWN for NVMe (bsc#1076828) OBS-URL: https://build.opensuse.org/request/show/619018 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=163
2018-07-02 10:57:41 +02:00
%define _libdmmp_version 0.2.0
%define libdmmp_version %(echo %{_libdmmp_version} | tr . _)
Name: multipath-tools
Version: 0.9.2+57+suse.cf3c1e9
Release: 0
Summary: Tools to Manage Multipathed Devices with the device-mapper
License: GPL-2.0-only AND GPL-3.0-or-later
Group: System/Base
URL: http://christophe.varoqui.free.fr/
Source: multipath-tools-%{version}.tar
Source1: multipath.conf
Accepting request 520380 from home:mwilck:branches:Base:System - Update to version 0.7.2+44.3a8d750c: Misc bug fixes: * multipathd: don't flood system with sd_notify calls (bsc#1056011) * libmultipath: add_feature: skip pointless NULL check (bsc#1055635) * libmultipath: add_feature: allow only 1 feature (bsc#1055635) * multipath: delegate dangerous commands to multipathd (bsc#1047639) * libmultipath: fix partition_delimiter config option (bsc#1056526) * kpartx: helper functions for name and uuid generation (bsc#1056508) * kpartx: search partitions by UUID, and rename (bsc#1056508) * kpartx: fix a corner case when renaming partitions (bsc#1056508) * kpartx: -d must work with empty partition table (boo#1056599) * kpartx: only recognize dasd part table on DASD (boo#1056599) Rework of the udev rules related to multipath and kpartx (bsc#1054363): * libmultipath: support MPATH_UDEV_NO_PATHS_FLAG on map creation * libmultipath: add get_udev_device * libmultipath: get_refwwid: use get_udev_device * libmultipath: use const char* in some dm helpers * libmultipath: add DI_NOIO flag for pathinfo * libmultipath: add dm_get_multipath * multipath: implement "check usable paths" (-C/-U) * 11-dm-mpath.rules: multipath -U for READY check * 11-dm-mpath.rules: import more ID_FS_xxx vars from db * 11-dm-mpath.rules: no need to test before IMPORT * 11-dm-mpath.rules: handle new maps with READY==0 * 11-dm-mpath.rules: don't set READY->ACTIVATION * 11-dm-mpath.rules: Remember DM_ACTIVATION * multipath.rules: set ID_FS_TYPE to "mpath_member" * kpartx.rules: don't rely on DM_DEPS and DM_TABLE_STATE * kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG * kpartx.rules: improved logic for by-uuid and by-label links OBS-URL: https://build.opensuse.org/request/show/520380 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=132
2017-09-03 01:30:12 +02:00
# SUSE policy: disable partition deletion by default
Source2: dont-del-part-nodes.rules
# Dracut conf file to make sure 11-dm-parts.rules is included in initrd
Source3: dm-parts.conf
Source4: libmpathpersist-example.c
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
Source5: libmpathpersist-example-old.c
Source6: multipath-dracut.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
BuildRequires: libaio-devel
BuildRequires: pkgconfig(devmapper)
%if 0%{?with_libdmmp} == 1
BuildRequires: pkgconfig(json-c)
%endif
BuildRequires: readline-devel
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(liburcu)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
%if 0%{?with_check} == 1
BuildRequires: pkgconfig(cmocka)
%endif
# For regenerate-initrd-posttrans
# For now, we still need to require suse-module-tools
# See https://github.com/openSUSE/rpm-config-SUSE/pull/6
BuildRequires: suse-module-tools
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
Requires(post): suse-module-tools
Requires: device-mapper >= 1.2.78
Requires: kpartx
Requires: sg3_utils
Obsoletes: multipath-tools-rbd <= %{version}
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
PreReq: coreutils
PreReq: grep
%description
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
This package provides the multipath tool and the multipathd daemon
to manage dm-multipath devices. multipath can detect and set up
multipath maps. multipathd sets up multipath maps automatically,
monitors path devices for failure, removal, or addition, and applies
the necessary changes to the multipath maps to ensure continuous
availability of the map devices.
# Currently, it makes no sense to split out libmpathpersist and libmpathcmd
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
# separately. libmultipath has no stable API at all, and it depends
# on libmpathcmd (to be fixed). libmpathpersist depends on libmultipath
# and it loads prioritizers (to be fixed) and checkers.
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%package -n libmpath0
Summary: Libraries for multipath-tools
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
# This is for libmpathcmd, which is useless without multipathd.
# No hard dependency here - we don't want to pull in all dependencies
# of multipath-tools.
License: GPL-2.0-only AND LGPL-2.1-only AND LGPL-2.0-or-later
Group: System/Libraries
Recommends: multipath-tools
Conflicts: multipath-tools < 0.8.0
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%description -n libmpath0
libmpathpersist provides a C API for handling of SCSI persistent
reservations for device-mapper multipath devices. libmpathcmd
provides a C API for sending commands to a running multipathd
instance.
%package -n kpartx
Summary: Manages partition tables on device-mapper devices
License: GPL-2.0-only
Group: System/Base
Requires: device-mapper
%description -n kpartx
The kpartx program maps linear devmaps to device partitions, which
makes multipath maps partionable.
%package devel
Summary: Development libraries for multipath-tools
License: GPL-2.0-only AND LGPL-2.0-or-later
Group: Development/Libraries/C and C++
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
Requires: libmpath0 = %{version}
%description devel
This package contains the development libraries for multipath-tools
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
and libmpathpersist.
%package -n libdmmp%{libdmmp_version}
Summary: C API for multipath-tools
License: GPL-3.0-or-later
Group: System/Libraries
Requires: multipath-tools
%description -n libdmmp%{libdmmp_version}
This library enables the use of libmultipath commands from C code.
%package -n libdmmp-devel
Summary: Header files for multipath-tools C API
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
Requires: libdmmp%{libdmmp_version} = %{version}
%description -n libdmmp-devel
This package provides development files and documentation for libdmmp.
Accepting request 619018 from home:mwilck:branches:Base:System - Update to version 0.7.7+70+suse.4a5941e: * libmultipath: change partition_delimiter default to "-part" (bsc#1073622, bsc#1056526) * change default for find_multipaths to "greedy" (bsc#1099054) * libmultipath: allow distributions to change partition_delim default (bsc#1073622, bsc#1056526) - Update to version 0.7.7+67+suse.a7d1e14: - RBD/RADOS backend support has been removed upstream remove support for it in openSUSE, too (boo#1099037) - libdmmp version has changed to 0.2.0 - New patches not yet upstream: * multipathd: fix mpp->hwe handling on path removal (boo#1099028) * libmultipath: print correct default for delay_*_checks (boo#1099026) * libmultipath: avoid error messages from RDAC check (bsc#1075539) * (lib)mpathpersist: use O_RDONLY file descriptors (bsc#1093220) * libmpathpersist: fix byte swapping for big endian systems (bsc#1099036) * multipath-tools/tests: add tests for get_unaligned_beXX (bsc#1099036) * libmultipath: add (get|put)_unaligned_be64 (bsc#1099036) * libmpathpersist: fix stack overflow in mpath_format_readfullstatus() (bsc#1099007) * multipathd: fix buffer size in cli_getprkey (bsc#1099028) * libmultipath: fix gcc 8.1 "truncated output" warnings (bsc#1099007) * libmpathpersist: fix typo in mpath_format_readfullstatus (bsc#1099007) * libmpathpersist: remove duplicate test in readfullstatus (bsc#1099007) - SUSE specific patches preserved: * multipath.rules: temporary rule to obtain ID_WWN for NVMe (bsc#1076828) OBS-URL: https://build.opensuse.org/request/show/619018 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=163
2018-07-02 10:57:41 +02:00
%define makeflags %{!?with_libdmmp:ENABLE_LIBDMMP=0}
%if 0%{?suse_version} < 1550
%define dirflags LIB=%{_lib} usr_prefix=%{_prefix} SYSTEMDPATH=usr/lib
%define sbindir /sbin
%define libdir /%{_lib}
%else
%define dirflags LIB=%{_lib} usr_prefix=%{_prefix} exec_prefix=%{_prefix} syslibdir=%{_libdir} libdir=%{_libdir}/multipath SYSTEMDPATH=usr/lib
%define sbindir %{_sbindir}
%define libdir %{_libdir}
%endif
%prep
%setup -q -n multipath-tools-%{version}
cp %{SOURCE4} .
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
cp %{SOURCE5} .
%autopatch -p1
%build
[ -n "$SOURCE_DATE_EPOCH" ] && export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
%{make_build} OPTFLAGS="%{mp_optflags}" %{dirflags} %{makeflags}
%if 0%{?with_check} == 1
%check
%{make_build} OPTFLAGS="%{mp_optflags}" test
%endif
%install
%make_install %{dirflags} %{makeflags}
mkdir -p %{buildroot}%{_defaultlicensedir}
mkdir -p %{buildroot}/usr/sbin
mkdir -p %{buildroot}/usr/%{_lib}
%if 0%{?suse_version} < 1550
for x in mpathutil multipath mpathpersist mpathcmd mpathvalid; do
rm -f %{buildroot}/%{_lib}/lib$x.so
ln -sf /%{_lib}/lib$x.so.0 %{buildroot}/usr/%{_lib}/lib$x.so
done
%endif
ln -sf service %{buildroot}/usr/sbin/rcmultipathd
mkdir -p %{buildroot}/usr/lib/modules-load.d
install -m 644 -D %{SOURCE1} "%{buildroot}/usr/lib/modules-load.d/multipath.conf"
Accepting request 520380 from home:mwilck:branches:Base:System - Update to version 0.7.2+44.3a8d750c: Misc bug fixes: * multipathd: don't flood system with sd_notify calls (bsc#1056011) * libmultipath: add_feature: skip pointless NULL check (bsc#1055635) * libmultipath: add_feature: allow only 1 feature (bsc#1055635) * multipath: delegate dangerous commands to multipathd (bsc#1047639) * libmultipath: fix partition_delimiter config option (bsc#1056526) * kpartx: helper functions for name and uuid generation (bsc#1056508) * kpartx: search partitions by UUID, and rename (bsc#1056508) * kpartx: fix a corner case when renaming partitions (bsc#1056508) * kpartx: -d must work with empty partition table (boo#1056599) * kpartx: only recognize dasd part table on DASD (boo#1056599) Rework of the udev rules related to multipath and kpartx (bsc#1054363): * libmultipath: support MPATH_UDEV_NO_PATHS_FLAG on map creation * libmultipath: add get_udev_device * libmultipath: get_refwwid: use get_udev_device * libmultipath: use const char* in some dm helpers * libmultipath: add DI_NOIO flag for pathinfo * libmultipath: add dm_get_multipath * multipath: implement "check usable paths" (-C/-U) * 11-dm-mpath.rules: multipath -U for READY check * 11-dm-mpath.rules: import more ID_FS_xxx vars from db * 11-dm-mpath.rules: no need to test before IMPORT * 11-dm-mpath.rules: handle new maps with READY==0 * 11-dm-mpath.rules: don't set READY->ACTIVATION * 11-dm-mpath.rules: Remember DM_ACTIVATION * multipath.rules: set ID_FS_TYPE to "mpath_member" * kpartx.rules: don't rely on DM_DEPS and DM_TABLE_STATE * kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG * kpartx.rules: improved logic for by-uuid and by-label links OBS-URL: https://build.opensuse.org/request/show/520380 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=132
2017-09-03 01:30:12 +02:00
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/00-dont-del-part-nodes.rules
install -m 644 -D %{SOURCE3} %{buildroot}/usr/lib/dracut/dracut.conf.d/dm-parts.conf
install -m 644 -D %{SOURCE6} %{buildroot}/usr/lib/dracut/dracut.conf.d/multipath.conf
sed -i 's,@TMPFILESDIR@,%{_tmpfilesdir},' %{buildroot}/usr/lib/dracut/dracut.conf.d/multipath.conf
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%post -n libmpath0 -p %{run_ldconfig}
%postun -n libmpath0 -p %{run_ldconfig}
- Merge with fixes from mainline. - Import multipath-tools from SLES11 SP1. - Increase initial timeout for 'tur' checker (bnc#616694) - Set geometry information for multipath maps (bnc#613363) - Reset 'running' parameter for directio (bnc#600043) - Add fallback to init script for older versions (bnc#602957) - Add HP 2000 to internal hardware table (bnc#603359) - Make path state messages unique - Add 'reassign_maps' configuration parameter - Profiling fixes: * Update 'max_fds' handling * Use strcmp() instead of strcmp_chomp() * Simplify sysfs_get_device() * Remove duplicate calls to path_offline() * Simplify dm_get_name() * Fixup devt2devname() * Rework dm_reassign() - check argument length in execute_program(bnc#610914) - Do not use LOG_CONS when opening syslog (bnc#610914) - Remove pid file usage from init scripts (bnc#600412) - Fixup boot.multipath init script (bnc#600412) - Always provide symlinks for udev (bnc#603785) - Use minor number in ev_remove_map() (bnc#599770) - signal_waiter() overwrites structure (bnc#591399) - Serialize startup on large machines (bnc#598697) - Update multipath(8) manpage for '-p' (bnc#602970) - Mark 'readsector0' checker as deprecated (bnc#589340) - Errorneous message 'error starting uevent listener' - Graceful shutdown of logging thread (bnc#591399) - Missing '-p' option for mkdir in mkinitrd script (bnc#597786) - rdac message not printed correctly (bnc#598302) - Use alias when printing log messages (bnc#598302) - valgrind fixes (bnc#591399) - Use VECTOR_SIZE() defines - Update hwtable factorization - Use log_close() on shutdown - Use refcounting for checkers (bnc#591399) - More valgrind fixes - Provide correct persistent symlinks for user_friendly_names (bnc#596301) - Fixup hardware table for LSI arrays (bnc#597713) - Reassign maps during startup (bnc#586834) - Update manpage - Use mkdir -p in mkinitrd setup script (bnc#597786). - Remove 'minor' argument from add_map_without_path - Check for correct device-mapper device in uevent handler - Start uevent service handler from main thread - Do not reassign multipath maps (bnc#594341) - Protect waiter structure by mutex (bnc#581200) - Log directly to syslog on shutdown (bnc#581200) - Clear up uevent queue on shutdown - Add more IBM/FAStT arrays (bnc#578738) - Display average priority as group priority (bnc#588591) - Implement 'wait event' cli command (bnc#586834) - Reset existing maps (bnc#577894) - Setup 'checkint' when loading config file (bnc#586847) - Fix typo in persistent rules for by-label/by-uuid - Update debug string in verify_paths() - Evaluate feature setting in verify_paths() (bnc#584197) - Fixup 'async_timeout' initialization again (bnc#580413) - 'reset log' cli command crashes daemon (bnc#577889) - Initialize 'async_timeout' variable correctly (bnc#580413) - Add hardware defaults for EMC Invista (bnc#573870) - Use '--replace-whitespace' for scsi_id (bnc#572209) - Asynchronous mode for tur checker (bnc#552688) - Update queue_if_no_path after sync with kernel state (bnc#570932) - Add 'max_polling_interval' config variable (bnc#570932) - Add 'async_timeout' configuration variable (bnc#570932) - Use default scsi_id callout for EMC Symmetrix (bnc#528481) - Update path_offline() to return device status - Update filename in init script - Fixes from upstream: * do not allow 0 size for multipath devices * Add nexenta comstart hardware defaults * Add checks for conf->xxx * Add %z wildcard to display path serial * don't pretend config file has setup parameters * documentation fixes - Fixup kpartx initrd script to handle loop devices (bnc#523749) - Switch off 'queue_if_no_path' before removing maps (bnc#475523) - Update logical partition handling (bnc#551827) - Fix mkinitrd scripts for 64bit (bnc572143) - Remove logical partitions maps with 'multipath -f' - testing for existence of /lib64 is not sufficient to find out if we are building for a lib64 platform - Update dev_loss_tmo for no_path_retry (bnc#492469) - Merge in changes from OpenSUSE 11.2 - Update 'no_path_retry' correctly for failed paths (bnc#534666) - Update no_path_retry setting when evaluating features (bnc#542145) - directio: block count calculation wrong (bnc#549028) - multipath segfaults if configuration file contains errors (bnc#540118) - Fixup strip whitespaces from getuid output (bnc#542085) - Change prefix for DASD devices to 'ccw' - Update no_path_retry setting when evaluating features (bnc#542145) - Update features when queue_if_no_path is set (bnc#511607) - Ignore error messages when multipathd is not started - Add debugging output for feature changes - Add generic LSI/Engenio controller (bnc#508030) - Update 'no_path_retry' correctly for failed paths (bnc#534666) - TUR checker should not return 'failed' for reservation conflict (bnc#498413) - Check for errors in pthread_create() - Lock vectors during shutdown - Cleanup various MALLOC/REALLOC callers - Fix multipathd crash on shutdown - Do not run kpartx on dm-uevent messages (bnc#473352) - Set pthread stacksize correctly (bnc#485287) - Add STK arrays to internal hardware table (bnc#503855) - Correct persistent symlink for cciss (bnc#497997) - Backport some fixes from upstream (bnc#445023) - Add 'reset log' cli command - no_path_retry <N> causes I/O to fail (bnc#485281) - Terminate uevent service queue - Wait for daemon to shutdown (bnc#481389) - Update cli request processing - Safe memory allocation in cli_handlers - Use 'LOG_CONS' option for openlog() - Remove sysfs attribute cache - Add 'shutdown' cli command - Display FC error messages correctly - Wait for devices in init script (bnc#487586) - Always synchronize with dm state (bnc#447887) - Add 'aas' path prioritizer (bnc#472069) - Synchronize daemon startup with init file (bnc#481389) - Merge feature string in assemble_map (bnc#507793) ------------------------------------------------------------------- - Reset checker message for blocked checkers - Increase priority for EMC Clariion arrays (bnc#484529) - Start waiter threads for single paths correctly (bnc#473841) - Use pthread_sigmask in alias.c when called from daemon. - Add %pre and %post scripts to stop multipathd during update - Don't set FC parameter on non-SCSI devices - multipath -t crashes with invalid configuration file - Don't remove partition mappings on stop (bnc#468826) - Set stacksize for log thread - Terminate all I/O before flushing maps (bnc#475523) - Select 'features' keyword from multipath setting (bnc#465009) - Use lists for uevent processing (bnc#478874) - Set stacksize of uevent handling thread (bnc#478874) - Increase uevent buffer size - Strip trailing blanks from wwid - Stack overflow in uev_trigger (bnc#476540) - Fixup multibus zero path handling (bnc#476330) - Update checker handling for blocked devices - Only pass block events to multipathd - Clean up uevent processing (bnc#478874) - Set stacksize correctly for event processing thread (bnc#478874) - Remove stray umask() call (bnc#458598) - Don't call kpartx if no paths are active (bnc#473352) - Multipathd dies immediately after startup (bnc#473029) - Return ghost state if port is in standby (bnc#475816) - Switch off queue_if_no_path before removing paths (bnc#475523) - Fix leastpending loadbalancer output (bnc#444199) - Start waitevent checker on new paths (bnc#473841) - Use 'noflush' for kpartx (bnc#473352) - Display multipath output for leastpending loadbalancer properly (bnc#444199) - Set queue_if_no_path setting during map reload (bnc#472253) - Remove obsolete 'umount map' uevent handling - Retry TUR on driver errors (bnc#456961) - Copy persistent bindings file into initramfs (bnc#468804) - Invert DM_STATE check for kpartx rules (bnc#440959) - Correct dbg_malloc() definition - Fix more memory leaks - Double free on path release (bnc#458393) OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=16
2010-07-06 16:27:45 +02:00
%pre
[ -f /.buildenv ] && exit 0
%service_add_pre multipathd.socket multipathd.service
- Merge with fixes from mainline. - Import multipath-tools from SLES11 SP1. - Increase initial timeout for 'tur' checker (bnc#616694) - Set geometry information for multipath maps (bnc#613363) - Reset 'running' parameter for directio (bnc#600043) - Add fallback to init script for older versions (bnc#602957) - Add HP 2000 to internal hardware table (bnc#603359) - Make path state messages unique - Add 'reassign_maps' configuration parameter - Profiling fixes: * Update 'max_fds' handling * Use strcmp() instead of strcmp_chomp() * Simplify sysfs_get_device() * Remove duplicate calls to path_offline() * Simplify dm_get_name() * Fixup devt2devname() * Rework dm_reassign() - check argument length in execute_program(bnc#610914) - Do not use LOG_CONS when opening syslog (bnc#610914) - Remove pid file usage from init scripts (bnc#600412) - Fixup boot.multipath init script (bnc#600412) - Always provide symlinks for udev (bnc#603785) - Use minor number in ev_remove_map() (bnc#599770) - signal_waiter() overwrites structure (bnc#591399) - Serialize startup on large machines (bnc#598697) - Update multipath(8) manpage for '-p' (bnc#602970) - Mark 'readsector0' checker as deprecated (bnc#589340) - Errorneous message 'error starting uevent listener' - Graceful shutdown of logging thread (bnc#591399) - Missing '-p' option for mkdir in mkinitrd script (bnc#597786) - rdac message not printed correctly (bnc#598302) - Use alias when printing log messages (bnc#598302) - valgrind fixes (bnc#591399) - Use VECTOR_SIZE() defines - Update hwtable factorization - Use log_close() on shutdown - Use refcounting for checkers (bnc#591399) - More valgrind fixes - Provide correct persistent symlinks for user_friendly_names (bnc#596301) - Fixup hardware table for LSI arrays (bnc#597713) - Reassign maps during startup (bnc#586834) - Update manpage - Use mkdir -p in mkinitrd setup script (bnc#597786). - Remove 'minor' argument from add_map_without_path - Check for correct device-mapper device in uevent handler - Start uevent service handler from main thread - Do not reassign multipath maps (bnc#594341) - Protect waiter structure by mutex (bnc#581200) - Log directly to syslog on shutdown (bnc#581200) - Clear up uevent queue on shutdown - Add more IBM/FAStT arrays (bnc#578738) - Display average priority as group priority (bnc#588591) - Implement 'wait event' cli command (bnc#586834) - Reset existing maps (bnc#577894) - Setup 'checkint' when loading config file (bnc#586847) - Fix typo in persistent rules for by-label/by-uuid - Update debug string in verify_paths() - Evaluate feature setting in verify_paths() (bnc#584197) - Fixup 'async_timeout' initialization again (bnc#580413) - 'reset log' cli command crashes daemon (bnc#577889) - Initialize 'async_timeout' variable correctly (bnc#580413) - Add hardware defaults for EMC Invista (bnc#573870) - Use '--replace-whitespace' for scsi_id (bnc#572209) - Asynchronous mode for tur checker (bnc#552688) - Update queue_if_no_path after sync with kernel state (bnc#570932) - Add 'max_polling_interval' config variable (bnc#570932) - Add 'async_timeout' configuration variable (bnc#570932) - Use default scsi_id callout for EMC Symmetrix (bnc#528481) - Update path_offline() to return device status - Update filename in init script - Fixes from upstream: * do not allow 0 size for multipath devices * Add nexenta comstart hardware defaults * Add checks for conf->xxx * Add %z wildcard to display path serial * don't pretend config file has setup parameters * documentation fixes - Fixup kpartx initrd script to handle loop devices (bnc#523749) - Switch off 'queue_if_no_path' before removing maps (bnc#475523) - Update logical partition handling (bnc#551827) - Fix mkinitrd scripts for 64bit (bnc572143) - Remove logical partitions maps with 'multipath -f' - testing for existence of /lib64 is not sufficient to find out if we are building for a lib64 platform - Update dev_loss_tmo for no_path_retry (bnc#492469) - Merge in changes from OpenSUSE 11.2 - Update 'no_path_retry' correctly for failed paths (bnc#534666) - Update no_path_retry setting when evaluating features (bnc#542145) - directio: block count calculation wrong (bnc#549028) - multipath segfaults if configuration file contains errors (bnc#540118) - Fixup strip whitespaces from getuid output (bnc#542085) - Change prefix for DASD devices to 'ccw' - Update no_path_retry setting when evaluating features (bnc#542145) - Update features when queue_if_no_path is set (bnc#511607) - Ignore error messages when multipathd is not started - Add debugging output for feature changes - Add generic LSI/Engenio controller (bnc#508030) - Update 'no_path_retry' correctly for failed paths (bnc#534666) - TUR checker should not return 'failed' for reservation conflict (bnc#498413) - Check for errors in pthread_create() - Lock vectors during shutdown - Cleanup various MALLOC/REALLOC callers - Fix multipathd crash on shutdown - Do not run kpartx on dm-uevent messages (bnc#473352) - Set pthread stacksize correctly (bnc#485287) - Add STK arrays to internal hardware table (bnc#503855) - Correct persistent symlink for cciss (bnc#497997) - Backport some fixes from upstream (bnc#445023) - Add 'reset log' cli command - no_path_retry <N> causes I/O to fail (bnc#485281) - Terminate uevent service queue - Wait for daemon to shutdown (bnc#481389) - Update cli request processing - Safe memory allocation in cli_handlers - Use 'LOG_CONS' option for openlog() - Remove sysfs attribute cache - Add 'shutdown' cli command - Display FC error messages correctly - Wait for devices in init script (bnc#487586) - Always synchronize with dm state (bnc#447887) - Add 'aas' path prioritizer (bnc#472069) - Synchronize daemon startup with init file (bnc#481389) - Merge feature string in assemble_map (bnc#507793) ------------------------------------------------------------------- - Reset checker message for blocked checkers - Increase priority for EMC Clariion arrays (bnc#484529) - Start waiter threads for single paths correctly (bnc#473841) - Use pthread_sigmask in alias.c when called from daemon. - Add %pre and %post scripts to stop multipathd during update - Don't set FC parameter on non-SCSI devices - multipath -t crashes with invalid configuration file - Don't remove partition mappings on stop (bnc#468826) - Set stacksize for log thread - Terminate all I/O before flushing maps (bnc#475523) - Select 'features' keyword from multipath setting (bnc#465009) - Use lists for uevent processing (bnc#478874) - Set stacksize of uevent handling thread (bnc#478874) - Increase uevent buffer size - Strip trailing blanks from wwid - Stack overflow in uev_trigger (bnc#476540) - Fixup multibus zero path handling (bnc#476330) - Update checker handling for blocked devices - Only pass block events to multipathd - Clean up uevent processing (bnc#478874) - Set stacksize correctly for event processing thread (bnc#478874) - Remove stray umask() call (bnc#458598) - Don't call kpartx if no paths are active (bnc#473352) - Multipathd dies immediately after startup (bnc#473029) - Return ghost state if port is in standby (bnc#475816) - Switch off queue_if_no_path before removing paths (bnc#475523) - Fix leastpending loadbalancer output (bnc#444199) - Start waitevent checker on new paths (bnc#473841) - Use 'noflush' for kpartx (bnc#473352) - Display multipath output for leastpending loadbalancer properly (bnc#444199) - Set queue_if_no_path setting during map reload (bnc#472253) - Remove obsolete 'umount map' uevent handling - Retry TUR on driver errors (bnc#456961) - Copy persistent bindings file into initramfs (bnc#468804) - Invert DM_STATE check for kpartx rules (bnc#440959) - Correct dbg_malloc() definition - Fix more memory leaks - Double free on path release (bnc#458393) OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=16
2010-07-06 16:27:45 +02:00
%post
- Merge with fixes from mainline. - Import multipath-tools from SLES11 SP1. - Increase initial timeout for 'tur' checker (bnc#616694) - Set geometry information for multipath maps (bnc#613363) - Reset 'running' parameter for directio (bnc#600043) - Add fallback to init script for older versions (bnc#602957) - Add HP 2000 to internal hardware table (bnc#603359) - Make path state messages unique - Add 'reassign_maps' configuration parameter - Profiling fixes: * Update 'max_fds' handling * Use strcmp() instead of strcmp_chomp() * Simplify sysfs_get_device() * Remove duplicate calls to path_offline() * Simplify dm_get_name() * Fixup devt2devname() * Rework dm_reassign() - check argument length in execute_program(bnc#610914) - Do not use LOG_CONS when opening syslog (bnc#610914) - Remove pid file usage from init scripts (bnc#600412) - Fixup boot.multipath init script (bnc#600412) - Always provide symlinks for udev (bnc#603785) - Use minor number in ev_remove_map() (bnc#599770) - signal_waiter() overwrites structure (bnc#591399) - Serialize startup on large machines (bnc#598697) - Update multipath(8) manpage for '-p' (bnc#602970) - Mark 'readsector0' checker as deprecated (bnc#589340) - Errorneous message 'error starting uevent listener' - Graceful shutdown of logging thread (bnc#591399) - Missing '-p' option for mkdir in mkinitrd script (bnc#597786) - rdac message not printed correctly (bnc#598302) - Use alias when printing log messages (bnc#598302) - valgrind fixes (bnc#591399) - Use VECTOR_SIZE() defines - Update hwtable factorization - Use log_close() on shutdown - Use refcounting for checkers (bnc#591399) - More valgrind fixes - Provide correct persistent symlinks for user_friendly_names (bnc#596301) - Fixup hardware table for LSI arrays (bnc#597713) - Reassign maps during startup (bnc#586834) - Update manpage - Use mkdir -p in mkinitrd setup script (bnc#597786). - Remove 'minor' argument from add_map_without_path - Check for correct device-mapper device in uevent handler - Start uevent service handler from main thread - Do not reassign multipath maps (bnc#594341) - Protect waiter structure by mutex (bnc#581200) - Log directly to syslog on shutdown (bnc#581200) - Clear up uevent queue on shutdown - Add more IBM/FAStT arrays (bnc#578738) - Display average priority as group priority (bnc#588591) - Implement 'wait event' cli command (bnc#586834) - Reset existing maps (bnc#577894) - Setup 'checkint' when loading config file (bnc#586847) - Fix typo in persistent rules for by-label/by-uuid - Update debug string in verify_paths() - Evaluate feature setting in verify_paths() (bnc#584197) - Fixup 'async_timeout' initialization again (bnc#580413) - 'reset log' cli command crashes daemon (bnc#577889) - Initialize 'async_timeout' variable correctly (bnc#580413) - Add hardware defaults for EMC Invista (bnc#573870) - Use '--replace-whitespace' for scsi_id (bnc#572209) - Asynchronous mode for tur checker (bnc#552688) - Update queue_if_no_path after sync with kernel state (bnc#570932) - Add 'max_polling_interval' config variable (bnc#570932) - Add 'async_timeout' configuration variable (bnc#570932) - Use default scsi_id callout for EMC Symmetrix (bnc#528481) - Update path_offline() to return device status - Update filename in init script - Fixes from upstream: * do not allow 0 size for multipath devices * Add nexenta comstart hardware defaults * Add checks for conf->xxx * Add %z wildcard to display path serial * don't pretend config file has setup parameters * documentation fixes - Fixup kpartx initrd script to handle loop devices (bnc#523749) - Switch off 'queue_if_no_path' before removing maps (bnc#475523) - Update logical partition handling (bnc#551827) - Fix mkinitrd scripts for 64bit (bnc572143) - Remove logical partitions maps with 'multipath -f' - testing for existence of /lib64 is not sufficient to find out if we are building for a lib64 platform - Update dev_loss_tmo for no_path_retry (bnc#492469) - Merge in changes from OpenSUSE 11.2 - Update 'no_path_retry' correctly for failed paths (bnc#534666) - Update no_path_retry setting when evaluating features (bnc#542145) - directio: block count calculation wrong (bnc#549028) - multipath segfaults if configuration file contains errors (bnc#540118) - Fixup strip whitespaces from getuid output (bnc#542085) - Change prefix for DASD devices to 'ccw' - Update no_path_retry setting when evaluating features (bnc#542145) - Update features when queue_if_no_path is set (bnc#511607) - Ignore error messages when multipathd is not started - Add debugging output for feature changes - Add generic LSI/Engenio controller (bnc#508030) - Update 'no_path_retry' correctly for failed paths (bnc#534666) - TUR checker should not return 'failed' for reservation conflict (bnc#498413) - Check for errors in pthread_create() - Lock vectors during shutdown - Cleanup various MALLOC/REALLOC callers - Fix multipathd crash on shutdown - Do not run kpartx on dm-uevent messages (bnc#473352) - Set pthread stacksize correctly (bnc#485287) - Add STK arrays to internal hardware table (bnc#503855) - Correct persistent symlink for cciss (bnc#497997) - Backport some fixes from upstream (bnc#445023) - Add 'reset log' cli command - no_path_retry <N> causes I/O to fail (bnc#485281) - Terminate uevent service queue - Wait for daemon to shutdown (bnc#481389) - Update cli request processing - Safe memory allocation in cli_handlers - Use 'LOG_CONS' option for openlog() - Remove sysfs attribute cache - Add 'shutdown' cli command - Display FC error messages correctly - Wait for devices in init script (bnc#487586) - Always synchronize with dm state (bnc#447887) - Add 'aas' path prioritizer (bnc#472069) - Synchronize daemon startup with init file (bnc#481389) - Merge feature string in assemble_map (bnc#507793) ------------------------------------------------------------------- - Reset checker message for blocked checkers - Increase priority for EMC Clariion arrays (bnc#484529) - Start waiter threads for single paths correctly (bnc#473841) - Use pthread_sigmask in alias.c when called from daemon. - Add %pre and %post scripts to stop multipathd during update - Don't set FC parameter on non-SCSI devices - multipath -t crashes with invalid configuration file - Don't remove partition mappings on stop (bnc#468826) - Set stacksize for log thread - Terminate all I/O before flushing maps (bnc#475523) - Select 'features' keyword from multipath setting (bnc#465009) - Use lists for uevent processing (bnc#478874) - Set stacksize of uevent handling thread (bnc#478874) - Increase uevent buffer size - Strip trailing blanks from wwid - Stack overflow in uev_trigger (bnc#476540) - Fixup multibus zero path handling (bnc#476330) - Update checker handling for blocked devices - Only pass block events to multipathd - Clean up uevent processing (bnc#478874) - Set stacksize correctly for event processing thread (bnc#478874) - Remove stray umask() call (bnc#458598) - Don't call kpartx if no paths are active (bnc#473352) - Multipathd dies immediately after startup (bnc#473029) - Return ghost state if port is in standby (bnc#475816) - Switch off queue_if_no_path before removing paths (bnc#475523) - Fix leastpending loadbalancer output (bnc#444199) - Start waitevent checker on new paths (bnc#473841) - Use 'noflush' for kpartx (bnc#473352) - Display multipath output for leastpending loadbalancer properly (bnc#444199) - Set queue_if_no_path setting during map reload (bnc#472253) - Remove obsolete 'umount map' uevent handling - Retry TUR on driver errors (bnc#456961) - Copy persistent bindings file into initramfs (bnc#468804) - Invert DM_STATE check for kpartx rules (bnc#440959) - Correct dbg_malloc() definition - Fix more memory leaks - Double free on path release (bnc#458393) OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=16
2010-07-06 16:27:45 +02:00
[ -f /.buildenv ] && exit 0
%tmpfiles_create %{_tmpfilesdir}/multipath.conf
%service_add_post multipathd.socket multipathd.service
if [ $1 -eq 1 ]; then
[ ! -x /sbin/modprobe ] || /sbin/modprobe dm_multipath || true
fi
%{?regenerate_initrd_post}
exit 0
%preun
%service_del_preun multipathd.service multipathd.socket
%postun
%{?regenerate_initrd_post}
%service_del_postun multipathd.service
%service_del_postun_without_restart multipathd.socket
%posttrans
%{?regenerate_initrd_posttrans}
%files
%doc README.md
%license LICENSES/GPL-2.0
%license LICENSES/GPL-3.0
%{_udevrulesdir}/11-dm-mpath.rules
%{_udevrulesdir}/56-multipath.rules
%{sbindir}/multipath
%{sbindir}/multipathd
%{sbindir}/multipathc
%{sbindir}/mpathpersist
/usr/sbin/rcmultipathd
%{_unitdir}/multipathd.service
%{_unitdir}/multipathd.socket
%dir /usr/lib/modules-load.d
/usr/lib/modules-load.d/multipath.conf
%dir /usr/lib/dracut
%dir /usr/lib/dracut/dracut.conf.d
/usr/lib/dracut/dracut.conf.d/multipath.conf
%{_tmpfilesdir}/multipath.conf
%{_mandir}/man8/multipath.8*
%{_mandir}/man5/multipath.conf.5*
%{_mandir}/man8/multipathd.8*
%{_mandir}/man8/multipathc.8*
%{_mandir}/man8/mpathpersist.8*
%ghost /run/multipath
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%files -n libmpath0
%{libdir}/libmultipath.so.0
%{libdir}/libmpathcmd.so.0
%{libdir}/libmpathpersist.so.0
%{libdir}/libmpathvalid.so.0
%{libdir}/libmpathutil.so.0
%{libdir}/multipath
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%license LICENSES/GPL-2.0
%license LICENSES/LGPL-2.0
%license LICENSES/LGPL-2.1
%license README.licenses
%files devel
%{_libdir}/libmultipath.so
%{_libdir}/libmpathcmd.so
%{_libdir}/libmpathpersist.so
%{_libdir}/libmpathvalid.so
%{_libdir}/libmpathutil.so
/usr/include/mpath_cmd.h
/usr/include/mpath_persist.h
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
/usr/include/mpath_valid.h
%{_mandir}/man3/mpath_persistent_*
%doc libmpathpersist-example.c
Accepting request 894131 from home:mwilck:branches:Base:System - Update to version 0.8.6+10+suse.47711374: * Github workflows: add CI for SUSE-specific branches - Disabled LTO for multipath-tools * The test for is_valid_path fails if LTO is enabled, just disabling it for %check is insufficient. - Update to version 0.8.6+9+suse.6c05a61: Update to upstream 0.8.6. * add eh_deadline option to avoid endless SCSI error handling * add wwid_recheck option to detect storage configuration changes * add library versioning for libmultipath, libmpathpersist etc. and to libmultipath plugins * move some global symbols to libmultipath (udev, logsink, etc) and provide default implementations for get_multipath_config() etc. This allows simplifiying libmpathpersist_example.c drastically. * fixes for shutdown issues and various race conditions on exit * improve cleanup on exit, fix memory leaks * add libmpathvalid library * fixes for SAS expanders (bsc#1178377, bsc#1178379, bsc#1177081) * Avoid access to root FS while queueing IO (bsc#1178049, bsc#1181234) * lots of bug fixes, additions to built-in hardware table, and CI improvements (bsc#1186212) * kpartx: free loop device after listing partitions (boo#1107187) Bug fixes on top of 0.8.5 mentioned below are also included in this upstream version. (bsc#1182072, bsc#1177371) (bsc#1181435, bsc#1183666) OBS-URL: https://build.opensuse.org/request/show/894131 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=253
2021-05-18 21:47:44 +02:00
%doc libmpathpersist-example-old.c
%files -n kpartx
%license LICENSES/GPL-2.0
%{sbindir}/kpartx
Accepting request 520380 from home:mwilck:branches:Base:System - Update to version 0.7.2+44.3a8d750c: Misc bug fixes: * multipathd: don't flood system with sd_notify calls (bsc#1056011) * libmultipath: add_feature: skip pointless NULL check (bsc#1055635) * libmultipath: add_feature: allow only 1 feature (bsc#1055635) * multipath: delegate dangerous commands to multipathd (bsc#1047639) * libmultipath: fix partition_delimiter config option (bsc#1056526) * kpartx: helper functions for name and uuid generation (bsc#1056508) * kpartx: search partitions by UUID, and rename (bsc#1056508) * kpartx: fix a corner case when renaming partitions (bsc#1056508) * kpartx: -d must work with empty partition table (boo#1056599) * kpartx: only recognize dasd part table on DASD (boo#1056599) Rework of the udev rules related to multipath and kpartx (bsc#1054363): * libmultipath: support MPATH_UDEV_NO_PATHS_FLAG on map creation * libmultipath: add get_udev_device * libmultipath: get_refwwid: use get_udev_device * libmultipath: use const char* in some dm helpers * libmultipath: add DI_NOIO flag for pathinfo * libmultipath: add dm_get_multipath * multipath: implement "check usable paths" (-C/-U) * 11-dm-mpath.rules: multipath -U for READY check * 11-dm-mpath.rules: import more ID_FS_xxx vars from db * 11-dm-mpath.rules: no need to test before IMPORT * 11-dm-mpath.rules: handle new maps with READY==0 * 11-dm-mpath.rules: don't set READY->ACTIVATION * 11-dm-mpath.rules: Remember DM_ACTIVATION * multipath.rules: set ID_FS_TYPE to "mpath_member" * kpartx.rules: don't rely on DM_DEPS and DM_TABLE_STATE * kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG * kpartx.rules: improved logic for by-uuid and by-label links OBS-URL: https://build.opensuse.org/request/show/520380 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=132
2017-09-03 01:30:12 +02:00
%{_udevrulesdir}/00-dont-del-part-nodes.rules
%{_udevrulesdir}/11-dm-parts.rules
%{_udevrulesdir}/66-kpartx.rules
Accepting request 520380 from home:mwilck:branches:Base:System - Update to version 0.7.2+44.3a8d750c: Misc bug fixes: * multipathd: don't flood system with sd_notify calls (bsc#1056011) * libmultipath: add_feature: skip pointless NULL check (bsc#1055635) * libmultipath: add_feature: allow only 1 feature (bsc#1055635) * multipath: delegate dangerous commands to multipathd (bsc#1047639) * libmultipath: fix partition_delimiter config option (bsc#1056526) * kpartx: helper functions for name and uuid generation (bsc#1056508) * kpartx: search partitions by UUID, and rename (bsc#1056508) * kpartx: fix a corner case when renaming partitions (bsc#1056508) * kpartx: -d must work with empty partition table (boo#1056599) * kpartx: only recognize dasd part table on DASD (boo#1056599) Rework of the udev rules related to multipath and kpartx (bsc#1054363): * libmultipath: support MPATH_UDEV_NO_PATHS_FLAG on map creation * libmultipath: add get_udev_device * libmultipath: get_refwwid: use get_udev_device * libmultipath: use const char* in some dm helpers * libmultipath: add DI_NOIO flag for pathinfo * libmultipath: add dm_get_multipath * multipath: implement "check usable paths" (-C/-U) * 11-dm-mpath.rules: multipath -U for READY check * 11-dm-mpath.rules: import more ID_FS_xxx vars from db * 11-dm-mpath.rules: no need to test before IMPORT * 11-dm-mpath.rules: handle new maps with READY==0 * 11-dm-mpath.rules: don't set READY->ACTIVATION * 11-dm-mpath.rules: Remember DM_ACTIVATION * multipath.rules: set ID_FS_TYPE to "mpath_member" * kpartx.rules: don't rely on DM_DEPS and DM_TABLE_STATE * kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG * kpartx.rules: improved logic for by-uuid and by-label links OBS-URL: https://build.opensuse.org/request/show/520380 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=132
2017-09-03 01:30:12 +02:00
%{_udevrulesdir}/68-del-part-nodes.rules
/usr/lib/udev/kpartx_id
/usr/lib/dracut/dracut.conf.d/dm-parts.conf
%{_mandir}/man8/kpartx.8*
Accepting request 520380 from home:mwilck:branches:Base:System - Update to version 0.7.2+44.3a8d750c: Misc bug fixes: * multipathd: don't flood system with sd_notify calls (bsc#1056011) * libmultipath: add_feature: skip pointless NULL check (bsc#1055635) * libmultipath: add_feature: allow only 1 feature (bsc#1055635) * multipath: delegate dangerous commands to multipathd (bsc#1047639) * libmultipath: fix partition_delimiter config option (bsc#1056526) * kpartx: helper functions for name and uuid generation (bsc#1056508) * kpartx: search partitions by UUID, and rename (bsc#1056508) * kpartx: fix a corner case when renaming partitions (bsc#1056508) * kpartx: -d must work with empty partition table (boo#1056599) * kpartx: only recognize dasd part table on DASD (boo#1056599) Rework of the udev rules related to multipath and kpartx (bsc#1054363): * libmultipath: support MPATH_UDEV_NO_PATHS_FLAG on map creation * libmultipath: add get_udev_device * libmultipath: get_refwwid: use get_udev_device * libmultipath: use const char* in some dm helpers * libmultipath: add DI_NOIO flag for pathinfo * libmultipath: add dm_get_multipath * multipath: implement "check usable paths" (-C/-U) * 11-dm-mpath.rules: multipath -U for READY check * 11-dm-mpath.rules: import more ID_FS_xxx vars from db * 11-dm-mpath.rules: no need to test before IMPORT * 11-dm-mpath.rules: handle new maps with READY==0 * 11-dm-mpath.rules: don't set READY->ACTIVATION * 11-dm-mpath.rules: Remember DM_ACTIVATION * multipath.rules: set ID_FS_TYPE to "mpath_member" * kpartx.rules: don't rely on DM_DEPS and DM_TABLE_STATE * kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG * kpartx.rules: improved logic for by-uuid and by-label links OBS-URL: https://build.opensuse.org/request/show/520380 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=132
2017-09-03 01:30:12 +02:00
%posttrans -n kpartx
# The kpartx package contains udev rules that may need to be in initrd.
%{?regenerate_initrd_posttrans}
Accepting request 690443 from home:mwilck:multipath - Re-enable kmod-style dependencies for multipath-tools package (bsc#1119414) - Separate out libmpath0 (bsc#1119414) - Spec file improvements * Add Conflicts: for older multipath-tools to libmpath0 * Move license files to the libmpath0 package, which contains the code with complex licensing. The executables are GPL-2.0 anyway. * Remove bogus dependency of -devel package on device-mapper * -devel package depends on libmpath0, not multipath-tools * Remove %dir %{_defaultlicensedir} for SLE12-SP3 and newer (John Vandenberg <jayvdb@gmail.com>) * Remove unused /var/cache/multipath directory * Remove check for multipath maps in %pre and %post * Remove SLE11-specific multipathd service stop / start from %pre / %post * Remove obsolete tools from package description (bsc#1129827) * Add -n to %service_del_{pre,post}un for multipathd.socket - Update to version 0.8.0+17+suse.a28893f: * Code-identical to 0.7.9+139+suse.ed9d450, except for new version number - Disable kmod() style dependencies for now, as they are causing problems with image builds (bsc#1119414). They'd been active for SLE15-SP1 only, anyway. - _service: determine "tag offset" manually, the patch count determined by git is far too high. - Fix module name in multipath.conf (bsc#1119414) * The modules-load.d entry must match the filename exactly OBS-URL: https://build.opensuse.org/request/show/690443 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=189
2019-04-01 21:21:40 +02:00
%post -n libdmmp%{libdmmp_version} -p %{run_ldconfig}
%postun -n libdmmp%{libdmmp_version} -p %{run_ldconfig}
%if 0%{?with_libdmmp} == 1
%files -n libdmmp%{libdmmp_version}
%defattr(-,root,root)
%license LICENSES/GPL-3.0
Accepting request 491762 from home:mwilck:branches:Base:System --------------------------------------------------------------------- - spec file: Disable RADOS support for i586 on Leap 42.x (bsc#1036271) - spec file: Move libdmmp to /usr/lib[64] (bsc#1036652) - Update to version 0.7.1+7+suse.3edc5f7d: * kpartx: use mapname if no uuid is present (bsc#1033541) * kpartx: relax check when checking for a kpartx device (bsc#1033541) * libmpathpersist: use extern struct udev (bsc#1027188) * kpartx: include sys/sysmacros.h (fix compilation warning) - Update to upstream version 0.7.1: * multipath-tools: improve processing efficiency for addition and deletion of multipath devices * uevent_can_discard: optimize devpath check * multipathd: fix SIGUSR2 handling * multipath-tools: clean up libdmmp/Makefile * multipath-tools: libdmmp: Fix incorrect use of __attribute__ * multipath-tools: Remove trailing whitespaces * multipath-tools: add missing "-l" flag for pthread in libdmmp/Makefile * multipath-tools: build objects for libdmmp and libmpathpersist independently * libdmmp: minor Makefile cleanup * multipath-tools: remove incdir from Makefiles * libdmmp: don't disconnect from multipathd twice * multipathd: don't call strlen on NULL variables * libdmmp: move libdmmp.pc install location * multipathd: drop lock before calling uev_add_path * multipathd: allow devices to switch from RW to RO * libmultipath: don't set max_sectors_kb on reloads * Remove a trailing tab * multipath: fix segfault with disable_changed_wwids * multipath-tools: amend text from multipath/multipath.conf.5 * Bump the version code and date * multipath-tools: replace multipath configuration output OBS-URL: https://build.opensuse.org/request/show/491762 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=120
2017-04-28 11:13:05 +02:00
/%{_libdir}/libdmmp.so.%{_libdmmp_version}
%files -n libdmmp-devel
%defattr(-,root,root)
%{_libdir}/libdmmp.so
%{_mandir}/man3/libdmmp.h*
%{_mandir}/man3/dmmp_*
%{_includedir}/libdmmp
Accepting request 491762 from home:mwilck:branches:Base:System --------------------------------------------------------------------- - spec file: Disable RADOS support for i586 on Leap 42.x (bsc#1036271) - spec file: Move libdmmp to /usr/lib[64] (bsc#1036652) - Update to version 0.7.1+7+suse.3edc5f7d: * kpartx: use mapname if no uuid is present (bsc#1033541) * kpartx: relax check when checking for a kpartx device (bsc#1033541) * libmpathpersist: use extern struct udev (bsc#1027188) * kpartx: include sys/sysmacros.h (fix compilation warning) - Update to upstream version 0.7.1: * multipath-tools: improve processing efficiency for addition and deletion of multipath devices * uevent_can_discard: optimize devpath check * multipathd: fix SIGUSR2 handling * multipath-tools: clean up libdmmp/Makefile * multipath-tools: libdmmp: Fix incorrect use of __attribute__ * multipath-tools: Remove trailing whitespaces * multipath-tools: add missing "-l" flag for pthread in libdmmp/Makefile * multipath-tools: build objects for libdmmp and libmpathpersist independently * libdmmp: minor Makefile cleanup * multipath-tools: remove incdir from Makefiles * libdmmp: don't disconnect from multipathd twice * multipathd: don't call strlen on NULL variables * libdmmp: move libdmmp.pc install location * multipathd: drop lock before calling uev_add_path * multipathd: allow devices to switch from RW to RO * libmultipath: don't set max_sectors_kb on reloads * Remove a trailing tab * multipath: fix segfault with disable_changed_wwids * multipath-tools: amend text from multipath/multipath.conf.5 * Bump the version code and date * multipath-tools: replace multipath configuration output OBS-URL: https://build.opensuse.org/request/show/491762 OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=120
2017-04-28 11:13:05 +02:00
%{_libdir}/pkgconfig/libdmmp.pc
%endif
%changelog