1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmetad: no use of persistent filter with lvmetad

This commit is contained in:
Petr Rockai 2013-05-27 01:55:14 +02:00 committed by Zdenek Kabelac
parent e7878da921
commit 1f73e992ef
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.99 - Version 2.02.99 -
=================================== ===================================
Do not use persistent filter with lvmetad.
Update persistent filter functinality for global filter. Update persistent filter functinality for global filter.
Override system's global_filter settings for vgimportclone. Override system's global_filter settings for vgimportclone.
Detect maximum usable size for snapshot for lvresize. Detect maximum usable size for snapshot for lvresize.

View File

@ -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 * 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) && !stat(dev_cache, &st) &&
(st.st_ctime > config_file_timestamp(cmd->cft)) && (st.st_ctime > config_file_timestamp(cmd->cft)) &&
!persistent_filter_load(f4, NULL)) !persistent_filter_load(f4, NULL))