Kou Wenqi 3e26c4a6c1 libmultipath: limit paths that can get wwid from environment
Currently, whenever getting the uid_attribute from the udev database
fails, multipath will try to get it from the environment variables. This
normally isn't a problem, since either multipath -u is getting called
from a uevent and the environment will have the correct value in that
variable, or something else is being run and that variable won't be set.
However, when find_multipaths is configured to "smart", this causes
problems. For maybe devices, multipath needs to get the WWIDs of all the
other block devices, to see if they match the maybe device wwid.  If one
of those devices doesn't have uid_attribute set in its udev database,
multipath will fall back to checking the environment for it, and it will
find that variable set to the WWID of the maybe device that this uevent
is for.  This means that all devices with no WWID will end up appearing
to have the same WWID as the maybe device, causing multipath to
incorrectly claim it.

(cherry picked from commit 07e08e42400b8c37b2dacdc63e8ea4c737cc11b3)
2024-08-12 16:30:50 +08:00
2021-11-29 09:41:59 +08:00
2021-11-29 09:41:59 +08:00
2020-01-10 17:13:17 +08:00
Description
No description provided
2 MiB
Languages
Diff 100%