summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-05-20 09:52:37 +0000
committerMilan Broz <mbroz@redhat.com>2009-05-20 09:52:37 +0000
commiteb91c4eee3676993f3669f2c4c6aaa7305f9b03d (patch)
tree3deb3eac19e019743cfea429ede931e075d6d56a /tools
parente471c8eaef3a303caefc79dd35482d29f762cb79 (diff)
downloadlvm2-eb91c4eee3676993f3669f2c4c6aaa7305f9b03d.tar.gz
lvm2-eb91c4eee3676993f3669f2c4c6aaa7305f9b03d.tar.xz
lvm2-eb91c4eee3676993f3669f2c4c6aaa7305f9b03d.zip
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.
Diffstat (limited to 'tools')
-rw-r--r--tools/lvresize.c6
1 files changed, 0 insertions, 6 deletions
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 "