dev-mornfall-nix - lvmetad: Never try to use a persistent filter when using lvmetad.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c290749686f3508a2749d4d0cf88e0cc3db174a9 Commit: c290749686f3508a2749d4d0cf88e0cc3db174a9 Parent: f2936d9837dcf21a6452f624f396972e345d248e Author: Petr Rockai <[email protected]> AuthorDate: Mon May 27 01:55:14 2013 +0200 Committer: Petr Rockai <[email protected]> CommitterDate: Mon May 27 01:55:14 2013 +0200
lvmetad: Never try to use a persistent filter when using lvmetad.
--- lib/commands/toolcontext.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
lib/commands/toolcontext.c +4 -2
@@ -913,9 +913,11 @@ static int _init_filters(struct cmd_context *cmd, unsigned load_persistent_cache/* * Only load persistent filter device cache on startup if it is newer -* than the config file and this is not a long-lived process. +* than the config file and this is not a long-lived process. Also avoid +* it when lvmetad is enabled. */ -if (load_persistent_cache && !cmd->is_long_lived && +if (!find_config_tree_bool (cmd, global_use_lvmetad_CFG) && + load_persistent_cache && !cmd->is_long_lived && !stat (dev_cache, &st) && (st.st_ctime >config_file_timestamp (cmd->cft)) && !persistent_filter_load (f4,NULL ))