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

Prevent snapshot origin resizing.

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

View File

@ -1,5 +1,7 @@
Version 2.00.26 - Version 2.00.26 -
===================================== =====================================
Prevent snapshot origin resizing.
Improve a vgremove error message.
Update some man pages. Update some man pages.
Allow y/n with -ae args (exclusive activation). Allow y/n with -ae args (exclusive activation).
Fixes to lvcreate vgname parsing. 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; 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); alloc = (alloc_policy_t) arg_uint_value(cmd, alloc_ARG, lv->alloc);
if (lp->size) { if (lp->size) {