From f5190ed40c1f5f0c10f3293b6364ea351e6fcf94 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 3 Jun 2005 22:26:09 +0000 Subject: [PATCH] prevent active mirror resize for now --- tools/lvresize.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/lvresize.c b/tools/lvresize.c index e2eb15c7a..6ee149c0b 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -387,6 +387,11 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp) lp->resize = LV_EXTEND; } + if (lp->mirrors && activation() && + lv_info(lv, &info, 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) {