Skip to contentSkip to conversation

LVM2/lib/metadata mirror.c

PATCH [email protected] 1 participant 1 message Sep 16, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2011-09-16 16:41:37

Modified files:
lib/metadata : mirror.c

Log message:
After suspend/resume following a splitmirror op, call sync_local_dev_names to settle udev before calling deactivate_lv.

This is an intra-release regression (no WHATS_NEW entry required). It is part of the fix for the current WHATS_NEW entry:
Work around resume_lv causing error LV scanning during splitmirror operation.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.169&r2=1.170

lib/metadata/mirror.c +1 -0
@@ -747,6 +747,7 @@
 	 *   - commit VG changes
 	 *   - activate the new LV
 	 */
+	sync_local_dev_names(lv->vg->cmd);
 	new_lv = NULL;
 	dm_list_iterate_items(lvl, &split_images) {
 		if (!new_lv) {