Skip to content

LVM2: fix lvmetad udev rules for CHANGE events

Martin Wilck lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lvm2: 69-dm-lvm-metad.rules: explicit pvscan ruleudev/69-dm-lvm-metad.rules.in udev/Makefile.in+22 -40 replies
2/2lvm2: 69-dm-lvm-metad.rules: set systemd vars on "change"udev/69-dm-lvm-metad.rules.in udev/Makefile.in+44 -161 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchEric Ren
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] LVM2: fix lvmetad udev rules for CHANGE events

The current logic in 69-dm-lvm-metad.rules is broken for the default "enable-udev-systemd-background-jobs" case. Detailed information about the problem can be found in the commit message of the 2nd patch in the set. That patch also contains the tiny actual change of this patch set: if systemd background jobs are active, the variables SYSTEMD_ALIAS and SYSTEMD_WANTS are also set for CHANGE events, not only for ADD.

The reason that the patch set is quite large nonetheless is that I wanted the comments in the rules file to match the actual behavior. Substitution of multi-line comments is very hard, if not impossible, with the string substitution approach in the current Makefile. That necessitates the first patch, which introduces no functional change.

Martin Wilck (2):
lvm2: 69-dm-lvm-metad.rules: explicit pvscan rule
lvm2: 69-dm-lvm-metad.rules: set systemd vars on "change"

 udev/69-dm-lvm-metad.rules.in | 53 +++++++++++++++++++++++++++++++++++++++----
 udev/Makefile.in              |  9 +++++---
 2 files changed, 54 insertions(+), 8 deletions(-)
Signature · 1 line
2.15.1