diff options
author | David Teigland <teigland@redhat.com> | 2023-01-27 16:46:03 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-01-27 16:51:21 -0600 |
commit | 1068c5c15ef68d91cf1885b7191d7f13bbc636e1 (patch) | |
tree | c64fab298e2f806e53d61650e2363ff966b77509 /lib/filters/filter-regex.c | |
parent | a2392655a96cf299906db40193c1bcdb2a3d3ab0 (diff) | |
download | lvm2-1068c5c15ef68d91cf1885b7191d7f13bbc636e1.tar.gz |
pvscan: recognize "pci" as a common symlink component in filtersdev-dct-pvscan-devlinks-2
In case the filter strings don't include "/dev/disk", and only
include "pci".
Diffstat (limited to 'lib/filters/filter-regex.c')
-rw-r--r-- | lib/filters/filter-regex.c | 2 |
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; } } |