1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-20 11:33:15 +03:00

Ignore filter cache at startup if config file is newer than cache.

This commit is contained in:
Alasdair Kergon
2003-01-06 21:09:04 +00:00
parent d0df19e8a3
commit fdf481c665
4 changed files with 13 additions and 1 deletions

View File

@@ -311,7 +311,9 @@ static int _init_filters(struct cmd_context *cmd)
if (!*cmd->sys_dir)
cmd->dump_filter = 0;
if (!stat(lvm_cache, &st) && !persistent_filter_load(f4))
if (!stat(lvm_cache, &st) &&
(st.st_mtime > config_file_timestamp(cmd->cf)) &&
!persistent_filter_load(f4))
log_verbose("Failed to load existing device cache from %s",
lvm_cache);