summaryrefslogtreecommitdiff
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-07-10 13:39:29 -0500
committerDavid Teigland <teigland@redhat.com>2018-07-11 11:26:42 -0500
commit117160b27e510dceb1ed6acf995115c040acd88d (patch)
treeae459f189f4202cb78ef3c9f8196a559b2398801 /tools/lvchange.c
parentedf3f86184a380994e383b9884364e702e4ac647 (diff)
downloadlvm2-117160b27e510dceb1ed6acf995115c040acd88d.tar.gz
Remove lvmetad
Native disk scanning is now both reduced and async/parallel, which makes it comparable in performance (and often faster) when compared to lvm using lvmetad. Autoactivation now uses local temp files to record online PVs, and no longer requires lvmetad. There should be no apparent command-level change in behavior.
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 6282a6f31..07a578b86 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -1380,20 +1380,6 @@ static int _lvchange_activate_single(struct cmd_context *cmd,
}
}
- /*
- * If --sysinit -aay is used and at the same time lvmetad is used,
- * we want to rely on autoactivation to take place. Also, we
- * need to take special care here as lvmetad service does
- * not neet to be running at this moment yet - it could be
- * just too early during system initialization time.
- */
- if (arg_is_set(cmd, sysinit_ARG) && (arg_uint_value(cmd, activate_ARG, 0) == CHANGE_AAY)) {
- if (lvmetad_used()) {
- log_warn("WARNING: lvmetad is active, skipping direct activation during sysinit.");
- return ECMD_PROCESSED;
- }
- }
-
if (!_lvchange_activate(cmd, lv))
return_ECMD_FAILED;