1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Only attempt to guarantee 1 mda ignored if there's at least one mda in the vg.

This commit is contained in:
Alasdair Kergon 2010-06-30 14:27:40 +00:00
parent 4e11851795
commit 67b91d0848

View 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)