From 1068c5c15ef68d91cf1885b7191d7f13bbc636e1 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 27 Jan 2023 16:46:03 -0600 Subject: pvscan: recognize "pci" as a common symlink component in filters In case the filter strings don't include "/dev/disk", and only include "pci". --- lib/filters/filter-regex.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- cgit v1.2.1