mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvcreate: update snapshot test
With last commit, there has been missing test for valid setting of extents - there is no need to test max size when creating thin snapshots.
This commit is contained in:
parent
562c678ee2
commit
e01fbd9d8d
@ -300,7 +300,12 @@ static int _update_extents_params(struct volume_group *vg,
|
||||
break;
|
||||
}
|
||||
|
||||
if (lp->snapshot && lp->origin) {
|
||||
if (lp->snapshot && lp->origin && lp->extents) {
|
||||
if (!lp->chunk_size) {
|
||||
log_error(INTERNAL_ERROR "Missing snapshot chunk size.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!origin && !(origin = find_lv(vg, lp->origin))) {
|
||||
log_error("Couldn't find origin volume '%s'.",
|
||||
lp->origin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user