From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW lib/filters/filter-persistent.c
Date: 1 Jun 2010 19:02:12 -0000 [thread overview]
Message-ID: <20100601190212.17648.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-06-01 19:02:12
Modified files:
. : WHATS_NEW
lib/filters : filter-persistent.c
Log message:
Don't merge unchanged persistent cache file before dumping if tool scanned.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1601&r2=1.1602
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/filters/filter-persistent.c.diff?cvsroot=lvm2&r1=1.41&r2=1.42
--- LVM2/WHATS_NEW 2010/06/01 12:08:50 1.1601
+++ LVM2/WHATS_NEW 2010/06/01 19:02:12 1.1602
@@ -1,5 +1,6 @@
Version 2.02.67 -
===============================
+ Don't merge unchanged persistent cache file before dumping if tool scanned.
Fix incorrect memory pool deallocation while using vg_read for files.
Add --type parameter description to the lvcreate man page.
Replace strncmp kernel version number checks with proper ones.
--- LVM2/lib/filters/filter-persistent.c 2010/05/13 13:04:05 1.41
+++ LVM2/lib/filters/filter-persistent.c 2010/06/01 19:02:12 1.42
@@ -295,6 +295,7 @@
{
struct pfilter *pf;
struct dev_filter *f = NULL;
+ struct stat info;
if (!(pf = dm_malloc(sizeof(*pf))))
return_NULL;
@@ -314,6 +315,10 @@
if (!(f = dm_malloc(sizeof(*f))))
goto_bad;
+ /* Only merge cache file before dumping it if it changed externally. */
+ if (!stat(pf->file, &info))
+ pf->ctime = info.st_ctime;
+
f->passes_filter = _lookup_p;
f->destroy = _persistent_destroy;
f->private = pf;
next reply other threads:[~2010-06-01 19:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 19:02 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-12 12:42 LVM2 ./WHATS_NEW lib/filters/filter-persistent.c prajnoha
2010-01-06 13:25 mbroz
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=20100601190212.17648.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.