diff options
author | David Teigland <teigland@redhat.com> | 2023-02-15 10:08:25 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-02-15 10:19:57 -0600 |
commit | bd05318ba2fc588be6339f5dc61f09195996b0e9 (patch) | |
tree | f32dcaa058897173e73ed8be9d1e1cd0c1a4c430 /lib/label | |
parent | 07cd341bd87a7559f33862a5a7480687b30e5f9c (diff) | |
download | lvm2-bd05318ba2fc588be6339f5dc61f09195996b0e9.tar.gz |
pvscan: filter does not need to be checked for symlink names
With the recent use of DEVLINKS, there is no longer any real
point in checking the filter for symlink names. Removing
this check should not change behavior with or without symlinks
in the filter.
Diffstat (limited to 'lib/label')
-rw-r--r-- | lib/label/label.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index 42d7b6709..c122a4ebb 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -1109,10 +1109,7 @@ int label_scan_vg_online(struct cmd_context *cmd, const char *vgname, * filter. We get devs from the pvs_online files, so we inherit the * regex filtering from pvscan and don't have to do it ourself. */ - if (!cmd->enable_devices_file && - !cmd->enable_devices_list && - regex_filter_contains_symlink(cmd)) - cmd->filter_regex_skip = 1; + cmd->filter_regex_skip = 1; cmd->filter_nodata_only = 1; |