diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-09-29 20:22:35 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-09-29 20:22:35 +0000 |
commit | 93bbc31c832868ec737b02f51f884f1825b0c1e7 (patch) | |
tree | a9fbc6cf94b7fe7e950f1c8f8113b6163e4a221c /tools/vgchange.c | |
parent | 724de2791ef64af4622277745a61791757bec8ff (diff) | |
download | lvm2-93bbc31c832868ec737b02f51f884f1825b0c1e7.tar.gz lvm2-93bbc31c832868ec737b02f51f884f1825b0c1e7.tar.xz lvm2-93bbc31c832868ec737b02f51f884f1825b0c1e7.zip |
Don't attempt to restart pvmoves when deactivating LVs in vgchange.
Restart lvconverts in vgchange by sharing lv_spawn_background_polling.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r-- | tools/vgchange.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index 95b0b48c..cef19c06 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -91,13 +91,9 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd, } else if (!activate_lv(cmd, lv)) continue; - if ((lv->status & PVMOVE) && - (pvname = get_pvmove_pvname_from_lv_mirr(lv))) { - log_verbose("Spawning background process for %s %s", - lv->name, pvname); - pvmove_poll(cmd, pvname, 1); - continue; - } + if (activate != CHANGE_AN && activate != CHANGE_ALN && + (lv->status & (PVMOVE|CONVERTING))) + lv_spawn_background_polling(cmd, lv); count++; } |