summaryrefslogtreecommitdiff
path: root/lib/commands
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2021-05-05 13:59:42 -0500
committerDavid Teigland <teigland@redhat.com>2021-05-05 13:59:42 -0500
commit71933d3496dfb21e1e39744d69f0372e202c1a1c (patch)
treed5e560ad9972ba83dc2ee67129b7bb4e4c683710 /lib/commands
parent2419345b9d407d8b07327d7484f765ee92be5994 (diff)
downloadlvm2-71933d3496dfb21e1e39744d69f0372e202c1a1c.tar.gz
devices file: recommend removing filter
When the devices file is enabled and the filter is set, recommand that the user remove the filter from lvm.conf since it's ignored.
Diffstat (limited to 'lib/commands')
-rw-r--r--lib/commands/toolcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 75634caff..296618686 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -1106,7 +1106,7 @@ static struct dev_filter *_init_filter_chain(struct cmd_context *cmd)
/* global regex filter. Optional. */
if ((cn = find_config_tree_node(cmd, devices_global_filter_CFG, NULL))) {
- if (!(filters[nr_filt] = regex_filter_create(cn->v))) {
+ if (!(filters[nr_filt] = regex_filter_create(cn->v, 0, 1))) {
log_error("Failed to create global regex device filter");
goto bad;
}
@@ -1115,7 +1115,7 @@ static struct dev_filter *_init_filter_chain(struct cmd_context *cmd)
/* regex filter. Optional. */
if ((cn = find_config_tree_node(cmd, devices_filter_CFG, NULL))) {
- if (!(filters[nr_filt] = regex_filter_create(cn->v))) {
+ if (!(filters[nr_filt] = regex_filter_create(cn->v, 1, 0))) {
log_error("Failed to create regex device filter");
goto bad;
}