Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mdadm for openSUSE:Factory checked 
in at 2022-03-22 19:36:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mdadm (Old)
 and      /work/SRC/openSUSE:Factory/.mdadm.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mdadm"

Tue Mar 22 19:36:12 2022 rev:132 rq:963102 version:4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/mdadm/mdadm.changes      2021-11-24 
23:54:40.064439701 +0100
+++ /work/SRC/openSUSE:Factory/.mdadm.new.25692/mdadm.changes   2022-03-22 
19:36:14.750840288 +0100
@@ -1,0 +2,6 @@
+Fri Mar 18 22:48:41 UTC 2022 - Martin Wilck <mwi...@suse.com>
+
+- skip RAID assembly if DM_UDEV_DISABLE_OTHER_RULES_FLAG (bsc#1196054)
+  * Add 0120-udev-md-raid-assembly.rules-skip-if-DM_UDEV_DISABLE_.patch
+
+-------------------------------------------------------------------

New:
----
  0120-udev-md-raid-assembly.rules-skip-if-DM_UDEV_DISABLE_.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mdadm.spec ++++++
--- /var/tmp/diff_new_pack.c6nbcR/_old  2022-03-22 19:36:16.258841896 +0100
+++ /var/tmp/diff_new_pack.c6nbcR/_new  2022-03-22 19:36:16.262841899 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mdadm
 #
-# Copyright (c) 2021 SUSE LLC
+# 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
@@ -158,6 +158,7 @@
 Patch117:       0117-Grow-be-careful-of-corrupt-dev_roles-list.patch
 Patch118:       0118-Remove-Spare-drives-line-from-details-for-external-m.patch
 Patch119:       0119-Don-t-associate-spares-with-other-arrays-during-RAID.patch
+Patch120:       0120-udev-md-raid-assembly.rules-skip-if-DM_UDEV_DISABLE_.patch
 Patch1001:      1001-display-timeout-status.patch
 Patch1002:      1002-OnCalendar-format-fix-of-mdcheck_start-timer.patch
 Patch1003:      1003-mdadm-treat-the-Dell-softraid-array-as-local-array.patch
@@ -284,6 +285,7 @@
 %patch117 -p1
 %patch118 -p1
 %patch119 -p1
+%patch120 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++++++ 0120-udev-md-raid-assembly.rules-skip-if-DM_UDEV_DISABLE_.patch ++++++
>From 9e67cb85d6d2aeab773aab56b8b6cdf5b37c1a4e Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwi...@suse.com>
Date: Wed, 16 Feb 2022 21:48:52 +0100
Subject: [PATCH] udev-md-raid-assembly.rules: skip if
 DM_UDEV_DISABLE_OTHER_RULES_FLAG

device-mapper sets the flag DM_UDEV_DISABLE_OTHER_RULES_FLAG to 1 for
devices which are unusable. They may be no set up yet, suspended, or
otherwise unusable (e.g. multipath maps without usable path). This
flag does not necessarily imply SYSTEMD_READY=0 and must therefore
be tested separately.

Signed-off-by: Martin Wilck <mwi...@suse.com>
---
 udev-md-raid-assembly.rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/udev-md-raid-assembly.rules b/udev-md-raid-assembly.rules
index d668cdd..bc9679f 100644
--- a/udev-md-raid-assembly.rules
+++ b/udev-md-raid-assembly.rules
@@ -9,6 +9,9 @@ SUBSYSTEM!="block", GOTO="md_inc_end"
 
 # skip non-initialized devices
 ENV{SYSTEMD_READY}=="0", GOTO="md_inc_end"
+# device mapper sets DM_UDEV_DISABLE_OTHER_RULES_FLAG for devices which
+# aren't ready to use
+KERNEL=="dm-*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="md_inc_end"
 
 # handle potential components of arrays (the ones supported by md)
 ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="md_inc"
-- 
2.35.1

Reply via email to