]> sourceware.org Git - lvm2.git/commit
udev: change action check from ACTION!="add|change" to ACTION=="remove" 10/head 1226019017
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 7 Mar 2024 08:48:49 +0000 (09:48 +0100)
committerPeter Rajnoha <1208105-prajnoha@users.noreply.gitlab.com>
Mon, 25 Mar 2024 07:57:33 +0000 (07:57 +0000)
commit48188d7181f735d816e0dac73a7a121ecc667f9b
tree9bbea6c83618e903f8c06cbbfcd108ac35447cbd
parent71bac6f45b7979361ebabdc1261937dc1e12e3f0
udev: change action check from ACTION!="add|change" to ACTION=="remove"

For DM devices, the add/change/remove can appear as action for genuine
udev events.

However, there are more action types (bind, unbind, move, online, offline)
which never appear as actions for genuine DM udev events, but they can
still be synthesized (e.g. by writing "<action>" to "/sys/.../uevent" file
or by calling "udevadm trigger --action=<action>").

Let's also process these extra action types so that the udev-related content
is not lost completely, keeping all the symlinks and udev db entries just like
this was a synthetic udev event with "change" action.

Related to https://gitlab.com/lvmteam/lvm2/-/issues/4.
udev/10-dm.rules.in
udev/11-dm-lvm.rules.in
udev/12-dm-permissions.rules
udev/13-dm-disk.rules.in
This page took 0.034025 seconds and 5 git commands to generate.