From 4a86bafbcc27b3ca8f4fe01b8623dc24eb46c1fd Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Thu, 9 Jul 2009 08:50:55 +0000 Subject: [PATCH] Update t-vgcreate-usage.sh to check for default vg properties. --- test/t-vgcreate-usage.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/t-vgcreate-usage.sh b/test/t-vgcreate-usage.sh index 30cb57774..f1b49eb49 100755 --- a/test/t-vgcreate-usage.sh +++ b/test/t-vgcreate-usage.sh @@ -69,9 +69,6 @@ not vgcreate $vg $dev3 # Test default (4MB) vg_extent_size as well as limits of extent_size not vgcreate --physicalextentsize 0K $vg $dev1 $dev2 -vgcreate $vg $dev1 $dev2 -check_vg_field_ $vg vg_extent_size 4.00M -vgremove -ff $vg vgcreate --physicalextentsize 1K $vg $dev1 $dev2 check_vg_field_ $vg vg_extent_size 1.00K vgremove -ff $vg @@ -79,3 +76,11 @@ not vgcreate --physicalextentsize 3K $vg $dev1 $dev2 not vgcreate --physicalextentsize 1024T $vg $dev1 $dev2 #not vgcreate --physicalextentsize 1T $vg $dev1 $dev2 # FIXME: vgcreate allows physicalextentsize larger than pv size! + +# Test default max_lv, max_pv, extent_size, alloc_policy, clustered +vgcreate $vg $dev1 $dev2 +check_vg_field_ $vg vg_extent_size 4.00M +check_vg_field_ $vg max_lv 0 +check_vg_field_ $vg max_pv 0 +check_vg_field_ $vg vg_attr "wz--n-" +vgremove -ff $vg