]> sourceware.org Git - lvm2.git/commitdiff
Only attempt to guarantee 1 mda ignored if there's at least one mda in the vg. old-v2_02_69 v2_02_69
authorAlasdair Kergon <agk@redhat.com>
Wed, 30 Jun 2010 14:27:40 +0000 (14:27 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 30 Jun 2010 14:27:40 +0000 (14:27 +0000)
lib/metadata/metadata.c

index cb95c8096492a39e12781c56eafb8219231a1e39..8a26e21191269b2e0c82711f7b188495787dc6f7 100644 (file)
@@ -1111,7 +1111,7 @@ skip_adjust:
         * below check and retain correctness.
         */
        if (!dm_list_size(&vg->fid->metadata_areas_in_use) ||
-           !vg_mda_used_count(vg))
+           !vg_mda_used_count(vg) && vg_mda_count(vg))
                ret = _vg_unignore_mdas(vg, 1);
 
        if (!ret)
This page took 0.039253 seconds and 5 git commands to generate.