mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Must not override alloc policy specified by user.
This commit is contained in:
parent
65e88e6b3c
commit
3da4ed712e
@ -2576,12 +2576,9 @@ int lv_extend(struct logical_volume *lv,
|
|||||||
return lv_add_virtual_segment(lv, 0u, extents, segtype, thin_pool_name);
|
return lv_add_virtual_segment(lv, 0u, extents, segtype, thin_pool_name);
|
||||||
|
|
||||||
if (!lv->le_count && segtype_is_thin_pool(segtype)) {
|
if (!lv->le_count && segtype_is_thin_pool(segtype)) {
|
||||||
if (stripes == 1 && (dm_list_size(allocatable_pvs) == 1)) {
|
|
||||||
log_warn("WARNING: Only one PV available for thin pool data and metadata.");
|
|
||||||
alloc = ALLOC_ANYWHERE;
|
|
||||||
}
|
|
||||||
/* Thin pool allocation treats its metadata device like a mirror log. */
|
/* Thin pool allocation treats its metadata device like a mirror log. */
|
||||||
/* TODO: add support for stripped metadata pool */
|
/* FIXME Allow pool and data on same device with NORMAL */
|
||||||
|
/* FIXME Support striped metadata pool */
|
||||||
log_count = 1;
|
log_count = 1;
|
||||||
} else if (segtype_is_raid(segtype) && !lv->le_count)
|
} else if (segtype_is_raid(segtype) && !lv->le_count)
|
||||||
log_count = mirrors * stripes;
|
log_count = mirrors * stripes;
|
||||||
|
Loading…
Reference in New Issue
Block a user