1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-26 14:04:15 +03:00

Prevent snapshot origin resizing.

This commit is contained in:
Alasdair Kergon 2004-11-18 19:49:48 +00:00
parent 03c3ec4e12
commit 90bcf4f157
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Version 2.00.26 -
=====================================
Prevent snapshot origin resizing.
Improve a vgremove error message.
Update some man pages.
Allow y/n with -ae args (exclusive activation).
Fixes to lvcreate vgname parsing.

View File

@ -180,6 +180,11 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp)
return ECMD_FAILED;
}
if (lv_is_origin(lv)) {
log_error("Snapshot origin volumes cannot be resized yet.");
return ECMD_FAILED;
}
alloc = (alloc_policy_t) arg_uint_value(cmd, alloc_ARG, lv->alloc);
if (lp->size) {