Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lvm2 for openSUSE:Factory checked in 
at 2022-02-06 23:53:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lvm2 (Old)
 and      /work/SRC/openSUSE:Factory/.lvm2.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lvm2"

Sun Feb  6 23:53:23 2022 rev:150 rq:950899 version:2.03.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/lvm2/lvm2.changes        2021-08-16 
10:13:25.054969248 +0200
+++ /work/SRC/openSUSE:Factory/.lvm2.new.1898/lvm2.changes      2022-02-06 
23:53:29.835134321 +0100
@@ -1,0 +2,6 @@
+Tue Feb  1 13:10:31 UTC 2022 - Martin Wilck <mwi...@suse.com>
+
+- udev: create symlinks and watch even in suspended state (bsc#1195231)
+   + (add) 0043-udev-create-symlinks-and-watch-even-in-suspended-sta.patch 
+
+-------------------------------------------------------------------

New:
----
  0043-udev-create-symlinks-and-watch-even-in-suspended-sta.patch

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

Other differences:
------------------
++++++ lvm2.spec ++++++
--- /var/tmp/diff_new_pack.nVilPq/_old  2022-02-06 23:53:30.939126960 +0100
+++ /var/tmp/diff_new_pack.nVilPq/_new  2022-02-06 23:53:30.943126933 +0100
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# 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
@@ -105,6 +105,7 @@
 Patch0040:      0040-pvck-add-lock_global-before-clean_hint_file.patch
 Patch0041:      0041-lvmdevices-add-deviceidtype-option.patch
 Patch0042:      bug-1188141_toolcontext-fix-double-free-core-dumped-issue.patch
+Patch0043:      0043-udev-create-symlinks-and-watch-even-in-suspended-sta.patch
 
 # SUSE patches: 1000+ for LVM
 # Never upstream
@@ -208,6 +209,7 @@
 %patch0040 -p1
 %patch0041 -p1
 %patch0042 -p1
+%patch0043 -p1
 %patch1001 -p1
 %patch1002 -p1
 %patch1003 -p1

++++++ 0043-udev-create-symlinks-and-watch-even-in-suspended-sta.patch ++++++
>From e10f67e91728f1e576803df884049ecbd92874d0 Mon Sep 17 00:00:00 2001
From: Martin Wilck <mwi...@suse.com>
Date: Fri, 28 Jan 2022 14:42:29 +0100
Subject: [PATCH] udev: create symlinks and watch even in suspended state

If a dm device is suspended, we can't run blkid on it. But earlier
rules (e.g. 11-dm-parts.rules) might have imported previously scanned
properties from the udev db, in particular if the device had been correctly
set up beforehand (DM_UDEV_PRIMARY_SOURCE_FLAG==1). Symlinks for existing
ID_FS_xyz properties must be preserved in this case. Otherwise lower-priority
devices (such as multipath components) might take over the symlink
temporarily.

Likewise, we should't stop watching a temporarily suspended, but previously
correctly configured dm device.

Signed-off-by: Martin Wilck <mwi...@suse.com>
---
 udev/13-dm-disk.rules.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/udev/13-dm-disk.rules.in b/udev/13-dm-disk.rules.in
index 535581070..5cc08121e 100644
--- a/udev/13-dm-disk.rules.in
+++ b/udev/13-dm-disk.rules.in
@@ -17,10 +17,14 @@ ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="dm_end"
 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
 
+ENV{DM_SUSPENDED}=="1", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", GOTO="dm_link"
+ENV{DM_NOSCAN}=="1", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", GOTO="dm_link"
 ENV{DM_SUSPENDED}=="1", GOTO="dm_end"
 ENV{DM_NOSCAN}=="1", GOTO="dm_watch"
 
 (BLKID_RULE)
+
+LABEL="dm_link"
 ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100"
 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", 
SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", 
SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
-- 
2.34.1

Reply via email to