mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
udev: fix lvmetad rules to not ignore loop device configuration
If loop device is first configured on systems where /dev/loop-control is used to dynamically create the loop device itself, there's an ADD+CHANGE even generated. But next time the existing /dev/loop[0-9]* is reused, there's only a CHANGE event since the device representing it is already present in kernel (so no ADD event in this case). We can't ignore this CHANGE event for loop devices! This is a regression caused by 756bcabbfe297688ba240a880bc2b55265ad33f0. We already had a similar problem with MD devices which was fixed by 2ac217d408470dcecb69b83d9cbf7a254747fa5b (but that one was only an intra-release fix).
This commit is contained in:
parent
f1dc4d3d81
commit
cac49725c9
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.101 -
|
Version 2.02.101 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix ignored lvmetad update on loop device configuration (2.02.99).
|
||||||
Use LVM_PATH instead of hardcoded value in lvm2 activation systemd generator.
|
Use LVM_PATH instead of hardcoded value in lvm2 activation systemd generator.
|
||||||
Refresh existing VG before autoactivation (event retrigger/device reappeared).
|
Refresh existing VG before autoactivation (event retrigger/device reappeared).
|
||||||
Fix vgck to notice on-disk corruption even if lvmetad is used.
|
Fix vgck to notice on-disk corruption even if lvmetad is used.
|
||||||
|
@ -21,7 +21,7 @@ SUBSYSTEM!="block", GOTO="lvm_end"
|
|||||||
ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="lvm_end"
|
ENV{ID_FS_TYPE}!="LVM2_member|LVM1_member", GOTO="lvm_end"
|
||||||
|
|
||||||
ACTION=="remove", GOTO="lvm_scan"
|
ACTION=="remove", GOTO="lvm_scan"
|
||||||
ACTION=="change", KERNEL=="md[0-9]*", GOTO="lvm_scan"
|
ACTION=="change", KERNEL=="md[0-9]*|loop[0-9]*", GOTO="lvm_scan"
|
||||||
|
|
||||||
# If the PV is not a dm device, scan only after device addition (ADD event)
|
# If the PV is not a dm device, scan only after device addition (ADD event)
|
||||||
KERNEL!="dm-[0-9]*", ACTION!="add", GOTO="lvm_end"
|
KERNEL!="dm-[0-9]*", ACTION!="add", GOTO="lvm_end"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user