mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-04 21:47:46 +03:00
Refuse adding missing PVs in create_pv_list in toollib when allocatable_only is
requested.
This commit is contained in:
parent
3743a6858b
commit
5dad791818
@ -1047,6 +1047,11 @@ static int _create_pv_entry(struct dm_pool *mem, struct pv_list *pvl,
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (allocatable_only && (pvl->pv->status & MISSING_PV)) {
|
||||
log_error("Physical volume %s is missing", pvname);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (allocatable_only &&
|
||||
(pvl->pv->pe_count == pvl->pv->pe_alloc_count)) {
|
||||
log_err("No free extents on physical volume \"%s\"", pvname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user