From eb91c4eee3676993f3669f2c4c6aaa7305f9b03d Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Wed, 20 May 2009 09:52:37 +0000 Subject: Use suspend with flush when device size was changed during table preload. This allows online mirror resize, also removes condition to preventing code to do this. --- tools/lvresize.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools/lvresize.c') diff --git a/tools/lvresize.c b/tools/lvresize.c index 5737558e..966e33bb 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -550,12 +550,6 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg, lp->resize = LV_EXTEND; } - if (lp->mirrors && activation() && - lv_info(cmd, lv, &info, 0, 0) && info.exists) { - log_error("Mirrors cannot be resized while active yet."); - return ECMD_FAILED; - } - if (lv_is_origin(lv)) { if (lp->resize == LV_REDUCE) { log_error("Snapshot origin volumes cannot be reduced " -- cgit