]> sourceware.org Git - lvm2.git/commit
pvscan: match device arg to filter symlink
authorDavid Teigland <teigland@redhat.com>
Mon, 29 Nov 2021 23:13:44 +0000 (17:13 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 29 Nov 2021 23:13:44 +0000 (17:13 -0600)
commitd12baba1a9bfe2d82537b20bc768758d84b263b6
tree79da320a19027c64fa73562d389505347daa08f3
parent009007484b88fb16e2177deaf4774d0e50576a06
pvscan: match device arg to filter symlink

This fixes an issue related to the optimization in
  "pvscan: only add device args to dev cache"

If the devices file is not used, and the lvm.conf filter
accepts devices via symlink names, then those devices won't
be accepted by pvscan for autoactivation.  To resolve this,
recognize when the filter contains symlinks and disable the
optimization.  When the optimization is disabled, a full
dev_cache_scan is performed, and symlinks are associated
with the device names passed to pvscan.  filter-regex
will accept a device if symlinks to that device are accepted.
test/shell/udev-pvscan-vgchange.sh
tools/pvscan.c
This page took 0.036257 seconds and 5 git commands to generate.