mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Don't merge unchanged persistent cache file before dumping if tool scanned.
This commit is contained in:
parent
ee83186ecc
commit
d01888706d
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.67 -
|
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.
|
Fix incorrect memory pool deallocation while using vg_read for files.
|
||||||
Add --type parameter description to the lvcreate man page.
|
Add --type parameter description to the lvcreate man page.
|
||||||
Replace strncmp kernel version number checks with proper ones.
|
Replace strncmp kernel version number checks with proper ones.
|
||||||
|
@ -295,6 +295,7 @@ struct dev_filter *persistent_filter_create(struct dev_filter *real,
|
|||||||
{
|
{
|
||||||
struct pfilter *pf;
|
struct pfilter *pf;
|
||||||
struct dev_filter *f = NULL;
|
struct dev_filter *f = NULL;
|
||||||
|
struct stat info;
|
||||||
|
|
||||||
if (!(pf = dm_malloc(sizeof(*pf))))
|
if (!(pf = dm_malloc(sizeof(*pf))))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
@ -314,6 +315,10 @@ struct dev_filter *persistent_filter_create(struct dev_filter *real,
|
|||||||
if (!(f = dm_malloc(sizeof(*f))))
|
if (!(f = dm_malloc(sizeof(*f))))
|
||||||
goto_bad;
|
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->passes_filter = _lookup_p;
|
||||||
f->destroy = _persistent_destroy;
|
f->destroy = _persistent_destroy;
|
||||||
f->private = pf;
|
f->private = pf;
|
||||||
|
Loading…
Reference in New Issue
Block a user