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:
parent
c27dc4e757
commit
0ec78e9862
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user