]> sourceware.org Git - lvm2.git/commit
udev: ignore LVs containing PVs 1170102018
authorDavid Teigland <teigland@redhat.com>
Thu, 8 Feb 2024 20:51:46 +0000 (14:51 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 8 Feb 2024 20:51:46 +0000 (14:51 -0600)
commitee73875ff0e2e4f93d2acf75e7ec33b216f84c97
treeae3f247377726f87250fc37cbf63aa0f52916470
parentfe822f704305b6bda5ebdf915a4f40be89f5ec67
udev: ignore LVs containing PVs

If LVM LVs happen to contain PVs, they are passed to the lvm udev
rule for processing, where they should be ignored.  PVs on LVs
most likely belong to VM images, and don't belong to the host
which sees the LV.  It's unsafe for the host to use these PVs.
Without this change, the LV would be processed by pvscan which
would generally ignore it, either because of the devices file,
or because of the default lvm policy to not consider LVs as
potential PVs.  This change makes the udev rule consistent
with that policy and avoids the unnecessary system messages
produced when pvscan ignores the LV.
udev/69-dm-lvm.rules.in
This page took 0.036415 seconds and 5 git commands to generate.