mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Don't skip updating pvid hash when lvmcache_info struct got swapped.
This commit is contained in:
parent
862d83c691
commit
29c8c75492
@ -1,5 +1,6 @@
|
||||
Version 2.02.44 -
|
||||
====================================
|
||||
Don't skip updating pvid hash when lvmcache_info struct got swapped.
|
||||
Add tinfo to termcap search path for pld-linux.
|
||||
Fix startup race in clvmd.
|
||||
Generate Red Hat clvmd startup script at configuration time with correct paths.
|
||||
|
6
lib/cache/lvmcache.c
vendored
6
lib/cache/lvmcache.c
vendored
@ -707,7 +707,11 @@ void lvmcache_del(struct lvmcache_info *info)
|
||||
|
||||
static int _lvmcache_update_pvid(struct lvmcache_info *info, const char *pvid)
|
||||
{
|
||||
if (!strcmp(info->dev->pvid, pvid))
|
||||
/*
|
||||
* Nothing to do if already stored with same pvid.
|
||||
*/
|
||||
if (((dm_hash_lookup(_pvid_hash, pvid)) == info) &&
|
||||
!strcmp(info->dev->pvid, pvid))
|
||||
return 1;
|
||||
if (*info->dev->pvid) {
|
||||
dm_hash_remove(_pvid_hash, info->dev->pvid);
|
||||
|
Loading…
Reference in New Issue
Block a user