From df06d9ac7aa596fd60d01d3098ae0a193eece2ea Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Wed, 13 Jan 2010 01:50:34 +0000 Subject: Start background polling of merging stores on: - lvchange -ay or vgchange -ay. - lvchange --refresh or vgchange --refresh. --- tools/vgchange.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tools/vgchange.c') diff --git a/tools/vgchange.c b/tools/vgchange.c index e425f14c..6a3420af 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -68,12 +68,12 @@ static int _poll_lvs_in_vg(struct cmd_context *cmd, else lv_active = info.exists; - if (!lv_active || - !(lv->status & (PVMOVE|CONVERTING))) - continue; - - lv_spawn_background_polling(cmd, lv); - count++; + if (lv_active && + (lv->status & (PVMOVE|CONVERTING) || + lv->merging_snapshot)) { + lv_spawn_background_polling(cmd, lv); + count++; + } } /* @@ -140,7 +140,8 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd, if (background_polling() && activate != CHANGE_AN && activate != CHANGE_ALN && - (lv->status & (PVMOVE|CONVERTING))) + (lv->status & (PVMOVE|CONVERTING) || + lv->merging_snapshot)) lv_spawn_background_polling(cmd, lv); count++; -- cgit