Skip to contentSkip to conversation

LVM2/tools lvconvert.c

PATCH [email protected] 1 participant 1 message Apr 26, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-04-26 18:12:44

Modified files:
tools : lvconvert.c

Log message:
add comments

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.130&r2=1.131

tools/lvconvert.c +6 -0
@@ -1195,6 +1195,9 @@
 	if (!_lv_update_log_type(cmd, lp, lv, failed_pvs, new_log_count))
 		return 0;
 
+	/*
+	 * Remove all failed_pvs
+	 */
 	if (!_lvconvert_mirrors_aux(cmd, lv, lp, failed_pvs,
 				    lp->mirrors, new_log_count))
 		return 0;
@@ -1570,6 +1573,9 @@
 	if (!lv)
 		goto_out;
 
+	/*
+	 * lp->pvh holds the list of PVs available for allocation or removal
+	 */
 	if (lp->pv_count) {
 		if (!(lp->pvh = create_pv_list(cmd->mem, lv->vg, lp->pv_count,
 					      lp->pvs, 0)))