From 93bbc31c832868ec737b02f51f884f1825b0c1e7 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 29 Sep 2009 20:22:35 +0000 Subject: Don't attempt to restart pvmoves when deactivating LVs in vgchange. Restart lvconverts in vgchange by sharing lv_spawn_background_polling. --- tools/lvchange.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'tools/lvchange.c') 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; -- cgit