1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Prevent resizing an LV while lvconvert is using it.

This commit is contained in:
Alasdair Kergon 2008-09-18 18:51:58 +00:00
parent bb875bb9e4
commit 08b481bbc5
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.40 -
================================
Prevent resizing an LV while lvconvert is using it.
Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan.
Fix pvresize to not allow resize if PV has two metadata areas.
Fix setting of volume limit count if converting to lvm1 format.

View File

@ -308,6 +308,11 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
return ECMD_FAILED;
}
if (lv->status & CONVERTING) {
log_error("Can't resize %s while lvconvert in progress", lv->name);
return ECMD_FAILED;
}
alloc = arg_uint_value(cmd, alloc_ARG, lv->alloc);
if (lp->size) {