mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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);
|
||||
|
||||
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. */
|
||||
/* 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;
|
||||
} else if (segtype_is_raid(segtype) && !lv->le_count)
|
||||
log_count = mirrors * stripes;
|
||||
|
Loading…
Reference in New Issue
Block a user