public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mbroz@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/cache/lvmcache.c lib/comm ... Date: Tue, 24 Nov 2009 16:11:00 -0000 [thread overview] Message-ID: <20091124161139.22924.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mbroz@sourceware.org 2009-11-24 16:11:38 Modified files: . : WHATS_NEW lib/cache : lvmcache.c lib/commands : toolcontext.c Log message: Move persistent filter dump to more appropriate place. After context_refresh is cache empty, the cache flush does nothing. Call it after lvmcache full rescan if running from log lived process. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1324&r2=1.1325 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.72&r2=1.73 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.87&r2=1.88 --- LVM2/WHATS_NEW 2009/11/24 16:10:25 1.1324 +++ LVM2/WHATS_NEW 2009/11/24 16:11:37 1.1325 @@ -1,5 +1,6 @@ Version 2.02.56 - ==================================== + Move persistent filter dump to more appropriate place. Refresh device filters before full device rescan in lvmcache. Return error status if vgchange fails to activate some volume. Fix memory lock imbalance in locking code. --- LVM2/lib/cache/lvmcache.c 2009/11/24 16:10:25 1.72 +++ LVM2/lib/cache/lvmcache.c 2009/11/24 16:11:37 1.73 @@ -20,6 +20,7 @@ #include "locking.h" #include "metadata.h" #include "filter.h" +#include "filter-persistent.h" #include "memlock.h" #include "str_list.h" #include "format-text.h" @@ -533,6 +534,13 @@ goto out; } + /* + * If we are a long-lived process, write out the updated persistent + * device cache for the benefit of short-lived processes. + */ + if (full_scan == 2 && cmd->is_long_lived && cmd->dump_filter) + persistent_filter_dump(cmd->filter); + r = 1; out: --- LVM2/lib/commands/toolcontext.c 2009/11/24 16:10:26 1.87 +++ LVM2/lib/commands/toolcontext.c 2009/11/24 16:11:38 1.88 @@ -1291,13 +1291,6 @@ 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; reset_lvm_errno(1);
next reply other threads:[~2009-11-24 16:11 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-24 16:11 mbroz [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-10-11 9:09 zkabelac 2010-05-13 13:04 mbroz 2010-04-01 10:34 agk 2009-11-24 16:10 mbroz 2008-04-02 21:23 agk
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091124161139.22924.qmail@sourceware.org \ --to=mbroz@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).