1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-07 05:58:00 +03:00
lvm2/lib/metadata
Zdenek Kabelac 022ebb0cfe lv_manip: better work with PERCENT_VG modifier
When using 'lvcreate -l100%VG' and there is big disproportion between
real available space and requested setting - automatically fallback
to 100%FREE.

Difference can be seen when VG is big and already most space was
allocated, so the requestion 100%VG can end (and by spec for % modifier
it's correct) as LV with size of 1%VG.  Usually this is not a big
problem - buit in some cases - like cache-pool allocation, this
can result a big difference for chunksize selection.

With this patch it's more closely match common-sense logic without
the need of reitteration of too big changes in lvm2 core ATM.

TODO: in the future there should be allocator solving all allocations
in a single call.
2019-01-21 12:53:15 +01:00
..
2018-12-21 21:45:08 +01:00
2018-11-06 14:18:41 -06:00
2018-12-21 21:45:08 +01:00
2016-01-21 12:11:37 +01:00
2018-06-08 14:36:56 +02:00
2018-06-05 16:23:18 +02:00
2018-11-06 14:18:41 -06:00
2018-10-15 17:49:44 +02:00
2018-07-11 11:26:42 -05:00