mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Long-lived processes write out persistent dev cache in refresh_toolcontext().
This commit is contained in:
parent
f72de1dc1c
commit
dd9927bcde
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.20 -
|
Version 2.02.20 -
|
||||||
===================================
|
===================================
|
||||||
|
Long-lived processes write out persistent dev cache in refresh_toolcontext().
|
||||||
Fix refresh_toolcontext() always to wipe persistent device filter cache.
|
Fix refresh_toolcontext() always to wipe persistent device filter cache.
|
||||||
Add is_long_lived to toolcontext.
|
Add is_long_lived to toolcontext.
|
||||||
Add --clustered to man pages.
|
Add --clustered to man pages.
|
||||||
|
@ -1080,6 +1080,13 @@ int refresh_toolcontext(struct cmd_context *cmd)
|
|||||||
if (!_init_segtypes(cmd))
|
if (!_init_segtypes(cmd))
|
||||||
return 0;
|
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;
|
cmd->config_valid = 1;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user