LVM2 lib/cache/lvmcache.c ./WHATS_NEW
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-09-16 18:05:11
Modified files:
lib/cache : lvmcache.c
. : WHATS_NEW
Log message:
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.59&r2=1.60
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.951&r2=1.952
lib/cache/lvmcache.c +4 -3
@@ -97,9 +97,10 @@int was_locked = (info->status &CACHE_LOCKED ) ?1 :0 ;/* -* Cache becomes invalid whenever lock state changes +* Cache becomes invalid whenever lock state changes unless +* exclusive VG_GLOBAL is held (i.e. while scanning). */ -if (was_locked != locked) { +if (!vgname_is_locked (VG_GLOBAL ) && (was_locked != locked)) { info->status |=CACHE_INVALID ; *cached_vgmetadata_valid =0 ; }
@@ -166,7 +167,7 @@/* Indicate that PVs could now be missing from the cache */ init_full_scan_done (0 ); - }else + }else if (!vgname_is_locked (VG_GLOBAL ))_drop_metadata (vgname); }
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.40 - ================================ + Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan. Fix pvresize to not allow resize if PV has two metadata areas. Fix setting of volume limit count if converting to lvm1 format. Fix vgconvert logical volume id metadata validation.