summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-09-29 20:22:35 +0000
committerAlasdair Kergon <agk@redhat.com>2009-09-29 20:22:35 +0000
commit93bbc31c832868ec737b02f51f884f1825b0c1e7 (patch)
treea9fbc6cf94b7fe7e950f1c8f8113b6163e4a221c /tools/lvchange.c
parent724de2791ef64af4622277745a61791757bec8ff (diff)
downloadlvm2-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/lvchange.c')
-rw-r--r--tools/lvchange.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index b9be0c2a..db22cadc 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -105,7 +105,6 @@ static int lvchange_availability(struct cmd_context *cmd,
struct logical_volume *lv)
{
int activate;
- const char *pvname;
activate = arg_uint_value(cmd, available_ARG, 0);
@@ -136,18 +135,7 @@ static int lvchange_availability(struct cmd_context *cmd,
return_0;
}
- if ((lv->status & LOCKED) &&
- (pvname = get_pvmove_pvname_from_lv(lv))) {
- log_verbose("Spawning background pvmove process for %s",
- pvname);
- pvmove_poll(cmd, pvname, 1);
- }
-
- if (lv->status & CONVERTING) {
- log_verbose("Spawning background lvconvert process for %s",
- lv->name);
- lvconvert_poll(cmd, lv, 1);
- }
+ lv_spawn_background_polling(cmd, lv);
}
return 1;