1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00
Zdenek Kabelac 0851ee5301 allocator: fix thin-pool allocation
When allocating thin-pool with more then 1 device - try to
allocate 'metadataLV' with reuse of log-type allocation for mirror LV.
It should be naturally place on other device then 'dataLV'.

However due to somewhat hard to follow allocation logic code,
it's been rejected allocation in cases where there was not
enough space for data or metadata on single PV, thus to successed,
usage of segments was mandatory.

While user may use:

allocation/thin_pool_metadata_require_separate_pvs=1

to enforce separe meta and data LV - on default settings, this is not
enable thus segment allocation is meant to work.

NOTE:

As already said - the original intention of this whole  'if()' is unclear,
so try to split this test into multiple more simple tests that are more readable.

TODO: more validation.
2018-07-09 00:35:34 +02:00
..
2018-06-26 12:15:43 -05:00
2018-06-26 12:15:44 +02:00
2018-05-15 16:58:28 +02:00
2016-04-29 19:47:15 +01:00
2018-04-30 16:55:02 -05:00
2016-01-21 12:11:37 +01:00
2018-06-26 12:15:43 -05:00
2016-01-21 12:11:37 +01:00
2018-05-11 12:47:56 -05: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