LVM2/lib/metadata metadata.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2010-11-30 11:15:55
Modified files:
lib/metadata : metadata.c
Log message:
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 -0
@@ -2614,6 +2614,14 @@ {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 "