Accepting request 961358 from Base:System

OBS-URL: https://build.opensuse.org/request/show/961358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lvm2?expand=0&rev=152
This commit is contained in:
Dominique Leuenberger 2022-03-14 18:35:16 +00:00 committed by Git OBS Bridge
commit 9e38b93fd5
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,35 @@
From c7a5b5cca067496f5912bf992dcfedb6771dd083 Mon Sep 17 00:00:00 2001
From: David Teigland <teigland@redhat.com>
Date: Wed, 9 Mar 2022 11:54:59 -0600
Subject: [PATCH] pvscan: don't use udev for external device info
pvscan is used to populate udev info, so it can't expect
to use that udev info.
---
tools/pvscan.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tools/pvscan.c b/tools/pvscan.c
index dcf183a464d9..db6709a5a23a 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -1710,13 +1710,11 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv)
}
/*
- * If obtain_device_list_from_udev was set to 1, force it to 0.
- * Don't ask udev for info since pvscan is running from udev.
- * If a pvscan attempts to get dev info from udev, udev can
- * repeatedly return errors about the dev not being initialized
- * which will stall the pvscan.
+ * Do not use udev for device listing or device info because pvscan
+ * is used to populate udev info.
*/
init_obtain_device_list_from_udev(0);
+ init_external_device_info_source(DEV_EXT_NONE);
if (arg_is_set(cmd, major_ARG) + arg_is_set(cmd, minor_ARG))
devno_args = 1;
--
2.34.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 10 01:25:00 UTC 2022 - Heming Zhao <heming.zhao@suse.com>
- Udev database has incomplete information about device /dev/sda. (bsc#1181242)
+ 0024-pvscan-don-t-use-udev-for-external-device-info.patch
-------------------------------------------------------------------
Tue Mar 1 15:45:00 UTC 2022 - heming.zhao@suse.com

View File

@ -86,6 +86,7 @@ Patch0020: 0020-devices-fix-dev_name-assumptions.patch
Patch0021: 0021-devices-use-dev-cache-aliases-handling-from-label-sc.patch
Patch0022: 0022-devices-only-close-PVs-on-LVs-when-scan_lvs-is-enabl.patch
Patch0023: 0023-writecache-check-memory-usage.patch
Patch0024: 0024-pvscan-don-t-use-udev-for-external-device-info.patch
# SUSE patches: 1000+ for LVM
# Never upstream
Patch1001: cmirrord_remove_date_time_from_compilation.patch
@ -168,6 +169,7 @@ Volume Manager.
%patch0021 -p1
%patch0022 -p1
%patch0023 -p1
%patch0024 -p1
%patch1001 -p1
%patch1002 -p1
%patch1003 -p1