LVM2 ./WHATS_NEW lib/metadata/mirror.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-10-17 10:50:15
Modified files:
. : WHATS_NEW
lib/metadata : mirror.c
Log message:
In resume_mirror_images replace activate_lv with resume_lv as workaround.
(The resume has the side-effect of resuming all of the original mirror's sub-lvs in addition to the new 'error' target middle layer.)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.975&r2=1.976
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.77&r2=1.78
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.41 - ===================================== + In resume_mirror_images replace activate_lv with resume_lv as workaround. Avoid overwriting in-use on-disk text metadata by forgetting MDA_HEADER_SIZE. Fix snapshot monitoring library to not cancel monitoring invalid snapshot. Generate man pages from templates and include version.
lib/metadata/mirror.c +5 -5
@@ -598,13 +598,13 @@log_very_verbose ("Updating \"%s\" in kernel" , mirrored_seg->lv->name);/* -* Avoid having same mirror target loaded twice simultaneouly by first -* activating the removed LV which now contains an error segment. -* As it's now detached from mirrored_seg->lv we must activate it +* Avoid having same mirror target loaded twice simultaneously by first +* resuming the removed LV which now contains an error segment. +* As it's now detached from mirrored_seg->lv we must resume it * explicitly. */ -if (lv1 && !activate_lv (lv1->vg->cmd, lv1)) { -log_error ("Problem reactivating removed %s" , lv1->name); +if (lv1 && !resume_lv (lv1->vg->cmd, lv1)) { +log_error ("Problem resuming temporary LV, %s" , lv1->name);return 0 ; }