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

Long-lived processes write out persistent dev cache in refresh_toolcontext().

This commit is contained in:
Alasdair Kergon
2007-01-23 16:03:54 +00:00
parent 9d944d6cf9
commit ee6e6529ee
2 changed files with 8 additions and 0 deletions

View File

@@ -1080,6 +1080,13 @@ int refresh_toolcontext(struct cmd_context *cmd)
if (!_init_segtypes(cmd))
return 0;
/*
* If we are a long-lived process, write out the updated persistent
* device cache for the benefit of short-lived processes.
*/
if (cmd->is_long_lived && cmd->dump_filter)
persistent_filter_dump(cmd->filter);
cmd->config_valid = 1;
return 1;
}