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
This commit is contained in:
Martin Wilck 2017-09-02 23:30:12 +00:00 committed by Git OBS Bridge
parent 5640565378
commit 481077a482
7 changed files with 96 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/openSUSE/multipath-tools.git</param>
<param name="changesrevision">448921a22a6ecba055562399b5ec3cf6ddade572</param></service></servicedata>
<param name="changesrevision">3a8d750ca3665cb801ab4571dacb59e1d0454134</param></service></servicedata>

3
dm-parts.conf Normal file
View File

@ -0,0 +1,3 @@
# This file has recently been added to kpartx.
# Not all dracut versions know about it.
install_items+="/usr/lib/udev/rules.d/11-dm-parts.rules"

13
dont-del-part-nodes.rules Normal file
View File

@ -0,0 +1,13 @@
# This system's udev rules support deletion of partition device nodes
# for disks which are members of multipath devices. That is useful
# to avoid using the member device partitions accidentally.
#
# See also 68-del-part-nodes.rules.
#
# On SUSE distributions, this feature is disabled by default, for
# backwards compatibility reasons, by means of this rule file.
# In order to enable the feature, copy this file to /etc/udev/rules.d
# and comment out the lines below.
SUBSYSTEM=="block", KERNEL=="sd*|dasd*|rbd*", ACTION=="add|change", \
ENV{DONT_DEL_PART_NODES}="1"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:da7fb19e15f72e15db7066cce2ba90da3a0ae77c6b3806b8de11396643ab4f5e
size 257772

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8e4c4ca0e03cb65ebeef695a3757d8f6d888ec6c461af6e9fcca767885a7eec
size 261152

View File

@ -1,3 +1,62 @@
-------------------------------------------------------------------
Sat Sep 02 21:38:13 UTC 2017 - mwilck@suse.com
- 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
* kpartx.rules: create by-partuuid and by-partlabel symlinks
* kpartx.rules: generate type-name links only for multipath devices
* kpartx.rules: fix logic for adding partitions
* multipath/kpartx rules: avoid superfluous scanning
* kpartx/del-part-nodes.rules: new udev file
* kpartx.rules: move symlink code to other files
- multipath-tools.spec:
* added 68-del-part-nodes.rules to support partition deletion
* added 00-dont-del-part-nodes.rules to disable partition deletion
by default on openSUSE/SLES for now.
* added 11-dm-parts.rules to kpartx package
* added dracut.conf file to make sure 11-dm-parts.rules is included
in initrd
-------------------------------------------------------------------
Mon Aug 14 21:22:38 UTC 2017 - mwilck@suse.com
- Update to version 0.7.2+14+suse.5721c345:
* cli_add_map: Use CMD_NONE (bsc#1053515)
* multipath-tools: link internal libraries before foreigns
(bsc#1028132)
* multipathd daemon: Fix incorrect use of CLOCK_MONOTONIC in
pthread (bsc#1053757)
-------------------------------------------------------------------
Fri Aug 11 21:41:43 UTC 2017 - mwilck@suse.com

View File

@ -89,13 +89,17 @@
Name: multipath-tools
Url: http://christophe.varoqui.free.fr/
Version: 0.7.2+11+suse.448921a2
Version: 0.7.2+44+suse.3a8d750c
Release: 0
Summary: Tools to Manage Multipathed Devices with the device-mapper
License: GPL-2.0
Group: System/Base
Source: multipath-tools-%{version}.tar.xz
Source1: multipath.conf
# 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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
BuildRequires: device-mapper-devel
@ -112,6 +116,8 @@ BuildRequires: readline-devel
BuildRequires: udev
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(systemd)
# dracut owns dracut.conf.d
BuildRequires: dracut
Requires: device-mapper >= 1.2.78
Requires: kpartx
Requires: sg3_utils
@ -190,6 +196,8 @@ mkdir -p %{buildroot}/usr/sbin
ln -sf /usr/sbin/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"
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
%pre
[ -f /.buildenv ] && exit 0
@ -255,10 +263,18 @@ exit 0
%files -n kpartx
%defattr(-,root,root)
/sbin/kpartx
%{_udevrulesdir}/00-dont-del-part-nodes.rules
%{_udevrulesdir}/11-dm-parts.rules
%{_udevrulesdir}/66-kpartx.rules
%{_udevrulesdir}/68-del-part-nodes.rules
/%{_sysdir}/udev/kpartx_id
/%{_sysdir}/dracut/dracut.conf.d/dm-parts.conf
%{_mandir}/man8/kpartx.8*
%posttrans -n kpartx
# The kpartx package contains udev rules that may need to be in initrd.
%{?regenerate_initrd_posttrans}
%if 0%{?with_libdmmp} == 1
%post -n libdmmp%{libdmmp_version}