]> sourceware.org Git - lvm2.git/commitdiff
Avoid the automatic MISSING_PV recovery path in commands with special
authorPetr Rockai <prockai@redhat.com>
Tue, 30 Nov 2010 11:15:54 +0000 (11:15 +0000)
committerPetr Rockai <prockai@redhat.com>
Tue, 30 Nov 2010 11:15:54 +0000 (11:15 +0000)
MISSING_PV handling (cmd->handles_missing_pvs is set).

lib/metadata/metadata.c

index 88a74302caefa38bfbd5e7e9cd94b71fe6f9b334..a6294cb52c9b10fb94d6d394255b97bb5c15bbd9 100644 (file)
@@ -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 "
This page took 0.044857 seconds and 5 git commands to generate.