mirror of
git://sourceware.org/git/lvm2.git
synced 2025-07-14 16:58:59 +03:00
Thin test min thin_pool size for at least 1 chunk
This commit is contained in:
@ -4102,6 +4102,12 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seg_is_thin_pool(lp) &&
|
||||||
|
(lp->extents * vg->extent_size < lp->chunk_size)) {
|
||||||
|
log_error("Unable to create thin pool smaller than 1 chunk.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (lp->snapshot && !lp->thin && (lp->extents * vg->extent_size < 2 * lp->chunk_size)) {
|
if (lp->snapshot && !lp->thin && (lp->extents * vg->extent_size < 2 * lp->chunk_size)) {
|
||||||
log_error("Unable to create a snapshot smaller than 2 chunks.");
|
log_error("Unable to create a snapshot smaller than 2 chunks.");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user