Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
lvm2.631
udev-Check-for-DM_NR_VALID_PATHS.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File udev-Check-for-DM_NR_VALID_PATHS.patch of Package lvm2.631
From b8354ac161b5ab8a4f5842201d7ee69f5089c6dc Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Thu, 12 Jun 2014 17:07:31 +0200 Subject: [PATCH] udev: Check for DM_NR_VALID_PATHS References: bnc#875233 When the device becomes inaccessible we must not run any program requiring disk access, as this will stall and cause udev to eventually timeout this event. So check for DM_NR_VALID_PATHS before calling these programs. References: bnc#875233 Signed-off-by: Hannes Reinecke <hare@suse.de> --- udev/10-dm.rules.in | 1 - udev/13-dm-disk.rules.in | 2 ++ udev/69-dm-lvm-metad.rules.in | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) --- a/udev/10-dm.rules.in +++ b/udev/10-dm.rules.in @@ -115,7 +115,6 @@ ENV{DM_UDEV_DISABLE_DM_RULES_FLAG}!="1", # We have to ignore further rule application for inappropriate events # and devices. But still send the notification if cookie exists. -ENV{DM_UUID}=="mpath-?*", ENV{DM_ACTION}=="PATH_FAILED", GOTO="dm_disable" ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_disable" ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="dm_disable" --- a/udev/13-dm-disk.rules.in +++ b/udev/13-dm-disk.rules.in @@ -19,8 +19,10 @@ ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id ENV{DM_SUSPENDED}=="1", GOTO="dm_end" ENV{DM_TARGET_TYPES}=="|*error*", GOTO="dm_end" +ENV{DM_NR_VALID_PATHS}=="0", GOTO="dm_blkid_end" (BLKID_RULE) +LABEL="dm_blkid_end" ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS+="link_priority=-100" OPTIONS+="watch" ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90" --- a/udev/69-dm-lvm-metad.rules.in +++ b/udev/69-dm-lvm-metad.rules.in @@ -19,6 +19,7 @@ SUBSYSTEM!="block", GOTO="lvm_end" # Device-mapper devices are processed only on change event or on supported synthesized event. KERNEL=="dm-[0-9]*", ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="lvm_end" +KERNEL=="dm-[0-9]*", ENV{DM_NR_VALID_PATHS}=="0", GOTO="lvm_end" # Only process devices already marked as a PV - this requires blkid to be called before. ENV{ID_FS_TYPE}=="LVM2_member|LVM1_member", RUN+="(LVM_EXEC)/lvm pvscan --cache --activate ay --major $major --minor $minor"
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