From e7075c43662b2f1d202b735957b9f890637a33c0 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 26 Apr 2010 18:12:40 +0000 Subject: [PATCH] add comments --- tools/lvconvert.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index ce1bae6b6..4c766e7ba 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -1195,6 +1195,9 @@ static int _lvconvert_mirrors_repair(struct cmd_context *cmd, 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 @@ static int lvconvert_single(struct cmd_context *cmd, struct lvconvert_params *lp 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)))