summaryrefslogtreecommitdiffstats
path: root/tools/lvconvert.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-04-26 18:12:40 +0000
committerAlasdair Kergon <agk@redhat.com>2010-04-26 18:12:40 +0000
commit4ed099bafaf9c6a9a83809f5e35d419e1ac72911 (patch)
tree19f5a5e17e20b0295fabacf77a2d5edcdc27187f /tools/lvconvert.c
parent257848229de068f888e2ed7552574d1e926805c2 (diff)
downloadlvm2-4ed099bafaf9c6a9a83809f5e35d419e1ac72911.tar.gz
lvm2-4ed099bafaf9c6a9a83809f5e35d419e1ac72911.tar.xz
lvm2-4ed099bafaf9c6a9a83809f5e35d419e1ac72911.zip
add comments
Diffstat (limited to 'tools/lvconvert.c')
-rw-r--r--tools/lvconvert.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index ce1bae6b..4c766e7b 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)))