[lvm-devel] LVM2/lib/cache lvmcache.c
agk at sourceware.org
agk at sourceware.org
Thu Dec 8 23:18:01 UTC 2011
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2011-12-08 23:18:00
Modified files:
lib/cache : lvmcache.c
Log message:
When dropping the VG metadata from the cache during a VG revert, we must
reset the 'precomitted' flag, just as we'd clear if we next did a 'commit'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.119&r2=1.120
--- LVM2/lib/cache/lvmcache.c 2011/10/11 09:09:00 1.119
+++ LVM2/lib/cache/lvmcache.c 2011/12/08 23:18:00 1.120
@@ -205,6 +205,10 @@
info->status |= CACHE_INVALID;
_free_cached_vgmetadata(vginfo);
+
+ /* VG revert */
+ if (drop_precommitted)
+ vginfo->precommitted = 0;
}
/*
More information about the lvm-devel
mailing list