[lvm-devel] LVM2 ./WHATS_NEW lib/commands/toolcontext.c
agk at sourceware.org
agk at sourceware.org
Tue Jan 23 16:03:54 UTC 2007
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2007-01-23 16:03:54
Modified files:
. : WHATS_NEW
lib/commands : toolcontext.c
Log message:
Long-lived processes write out persistent dev cache in refresh_toolcontext().
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.552&r2=1.553
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.44&r2=1.45
--- LVM2/WHATS_NEW 2007/01/23 15:58:05 1.552
+++ LVM2/WHATS_NEW 2007/01/23 16:03:53 1.553
@@ -1,5 +1,6 @@
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.
Add is_long_lived to toolcontext.
Add --clustered to man pages.
--- LVM2/lib/commands/toolcontext.c 2007/01/23 15:58:05 1.44
+++ LVM2/lib/commands/toolcontext.c 2007/01/23 16:03:54 1.45
@@ -1080,6 +1080,13 @@
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;
}
More information about the lvm-devel
mailing list