From 6d14144d311fb347e4225ad6a48d4900b39445c4 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Fri, 27 Jan 2023 16:46:03 -0600 Subject: [PATCH] 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; } }