From 97e8048e05115c57a44ce7daba9992ff99d05d79 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Tue, 30 Nov 2010 11:15:54 +0000 Subject: [PATCH] Avoid the automatic MISSING_PV recovery path in commands with special MISSING_PV handling (cmd->handles_missing_pvs is set). --- lib/metadata/metadata.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 88a74302c..a6294cb52 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -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 " -- 2.43.5