1
0
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:
Alasdair Kergon 2008-11-27 18:13:50 +00:00
parent 862d83c691
commit 29c8c75492
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);