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 /tools | |
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 'tools')
-rw-r--r-- | tools/pvscan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 8f60b2522..b834dfd4c 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -1502,8 +1502,7 @@ static int _pvscan_cache_args(struct cmd_context *cmd, int argc, char **argv, */ if ((dm_list_size(&pvscan_devs) == 1) && !cmd->enable_devices_file && - !cmd->enable_devices_list && - regex_filter_contains_symlink(cmd)) { + !cmd->enable_devices_list) { char *env_str; struct dm_list *env_aliases; devl = dm_list_item(dm_list_first(&pvscan_devs), struct device_list); |