LVM2/lib/metadata lv_manip.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-11-10 12:42:36
Modified files:
lib/metadata : lv_manip.c
Log message:
Thin test min thin_pool size for at least 1 chunk
lib/metadata/lv_manip.c +6 -0
@@ -4102,6 +4102,12 @@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)) {log_error ("Unable to create a snapshot smaller than 2 chunks." );return NULL ;