summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2023-01-27 16:46:03 -0600
committerDavid Teigland <teigland@redhat.com>2023-01-31 15:30:35 -0600
commit6d14144d311fb347e4225ad6a48d4900b39445c4 (patch)
tree7b93e9c1b3491c6a77d74f618180a1aa0d1141de /lib
parentc9fdc828ff0504bc2e57f65862bc382f7663a8a2 (diff)
downloadlvm2-6d14144d311fb347e4225ad6a48d4900b39445c4.tar.gz
pvscan: recognize "pci" as a common symlink component in filters
In case the filter strings don't include "/dev/disk", and only include "pci".
Diffstat (limited to 'lib')
-rw-r--r--lib/filters/filter-regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/filters/filter-regex.c b/lib/filters/filter-regex.c
index 40dc8aa1b..ecc32914b 100644
--- a/lib/filters/filter-regex.c
+++ b/lib/filters/filter-regex.c
@@ -284,6 +284,8 @@ static int _filter_contains_symlink(struct cmd_context *cmd, int filter_cfg)
return 1;
if (strstr(fname, "wwn-"))
return 1;
+ if (strstr(fname, "pci-"))
+ return 1;
}
}