mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Avoid the automatic MISSING_PV recovery path in commands with special
MISSING_PV handling (cmd->handles_missing_pvs is set).
This commit is contained in:
parent
1415afcdba
commit
97e8048e05
@ -2614,6 +2614,14 @@ static void check_reappeared_pv(struct volume_group *correct_vg,
|
||||
{
|
||||
struct pv_list *pvl;
|
||||
|
||||
/*
|
||||
* Skip these checks in case the tool is going to deal with missing
|
||||
* PVs, especially since the resulting messages can be pretty
|
||||
* confusing.
|
||||
*/
|
||||
if (correct_vg->cmd->handles_missing_pvs)
|
||||
return;
|
||||
|
||||
dm_list_iterate_items(pvl, &correct_vg->pvs)
|
||||
if (pv->dev == pvl->pv->dev && is_missing_pv(pvl->pv)) {
|
||||
log_warn("Missing device %s reappeared, updating "
|
||||
|
Loading…
Reference in New Issue
Block a user