1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-21 02:50:41 +03:00
Zdenek Kabelac e79e092f8b 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-04-30 12:24:53 +02:00
..
2016-04-29 19:47:15 +01:00
2019-04-23 09:42:25 -05:00
2018-04-30 16:55:02 -05:00
2019-04-10 13:30:34 +02:00
2016-01-21 12:11:37 +01:00
2019-01-31 09:56:29 -06:00
2016-01-21 12:11:37 +01:00
2018-07-04 13:41:08 +02:00
2016-01-21 12:11:37 +01:00
2018-05-31 10:23:03 -05:00
2018-06-26 12:15:44 +02:00
2016-10-03 17:49:56 +02:00