]> sourceware.org Git - lvm2.git/commitdiff
Update metadata-balance test for --vgmetadatacopies 0.
authorDave Wysochanski <dwysocha@redhat.com>
Wed, 30 Jun 2010 22:22:00 +0000 (22:22 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Wed, 30 Jun 2010 22:22:00 +0000 (22:22 +0000)
Should be equivalent to "unmanaged".

test/t-metadata-balance.sh

index 757dd1dc8271ade66f065618c25f6438eb22862e..7bd7d43e4e47feccd673de18400fbf7561bcfe9f 100755 (executable)
@@ -126,10 +126,13 @@ for mdacp in 1 2; do
        check_vg_field_ $vg vg_mda_count $(($mdacp * 4))
        check_vg_field_ $vg vg_mda_copies unmanaged
        check_vg_field_ $vg vg_mda_used_count $(($mdacp * 4))
-       echo --vgmetadatacopies 0 should be rejected for vgchange and vgcreate
-       not vgchange --vgmetadatacopies 0 $vg
+       echo --vgmetadatacopies 0 should be unmanaged for vgchange and vgcreate
+       vgchange --vgmetadatacopies 0 $vg
+       check_vg_field_ $vg vg_mda_copies unmanaged
+       vgremove -f $vg
+       vgcreate -c n --vgmetadatacopies 0 "$vg" $dev1 $dev2 $dev4 $dev5
+       check_vg_field_ $vg vg_mda_copies unmanaged
        vgremove -f $vg
-       not vgcreate -c n --vgmetadatacopies 0 "$vg" $dev1 $dev2 $dev4 $dev5
 done
 
 echo Test vgextend / vgreduce with vgmetadatacopies
This page took 1.408499 seconds and 5 git commands to generate.