diff options
author | David Teigland <teigland@redhat.com> | 2021-03-26 14:33:46 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-03-26 14:33:46 -0500 |
commit | 6666c7b2ff9eb8f55a6772580189ad84e71d0573 (patch) | |
tree | 0130326149e2061989ebdf4536182d48967907f7 | |
parent | 8888b12735d360b7aa5b4b22ac14818cfb9f0684 (diff) | |
download | lvm2-6666c7b2ff9eb8f55a6772580189ad84e71d0573.tar.gz |
pvscan: udevoutput check for event_activation=0
to stop udev rule from doing any activation
-rw-r--r-- | tools/pvscan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 0de587bb7..4652e7de4 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -1810,6 +1810,12 @@ int pvscan_cache_cmd(struct cmd_context *cmd, int argc, char **argv) return ECMD_PROCESSED; } + if (arg_is_set(cmd, udevoutput_ARG) && + !find_config_tree_bool(cmd, global_event_activation_CFG, NULL)) { + printf("LVM_EVENT_ACTIVATION=0\n"); + return ECMD_PROCESSED; + } + if (arg_is_set(cmd, major_ARG) + arg_is_set(cmd, minor_ARG)) devno_args = 1; |