Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
lvm2
bug-1202011_vgchange-monitor-don-t-use-udev-inf...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1202011_vgchange-monitor-don-t-use-udev-info.patch of Package lvm2
From 72f0b637d239c893ca49b05b83e2ebddc327e900 Mon Sep 17 00:00:00 2001 From: David Teigland <teigland@redhat.com> Date: Fri, 25 Mar 2022 14:13:56 -0500 Subject: [PATCH] vgchange monitor: don't use udev info vgchange --monitor y is run during startup when udev is being initialized and is not yet ready to be used. --- adjust patch according to SUSE lvm2-2.3.05 Signed-off-by: Luis Galdos <luis.galdos@suse.com> Signed-off-by: Heming Zhao <heming.zhao@suse.com> --- tools/vgchange.c | 11 +++++++++++ 1 file changed, 11 insertions(+) Index: LVM2.2.03.05/tools/vgchange.c =================================================================== --- LVM2.2.03.05.orig/tools/vgchange.c +++ LVM2.2.03.05/tools/vgchange.c @@ -831,6 +831,17 @@ int vgchange(struct cmd_context *cmd, in cmd->lockd_vg_enforce_sh = 1; } + /* + * Do not use udev for device listing or device info because + * vgchange --monitor y is called during boot when udev is being + * initialized and is not yet ready to be used. + */ + if (arg_is_set(cmd, monitor_ARG) && + arg_int_value(cmd, monitor_ARG, DEFAULT_DMEVENTD_MONITOR)) { + init_obtain_device_list_from_udev(0); + init_external_device_info_source(DEV_EXT_NONE); + } + if (update) flags |= READ_FOR_UPDATE; else if (arg_is_set(cmd, activate_ARG))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor