From 6b90f8e87581aca4ba08f583e60ae383ee71730e Mon Sep 17 00:00:00 2001 From: yangsheng Date: Mon, 9 Aug 2010 16:54:59 +0800 Subject: [PATCH] b=22596 Avoid test failed on single OST. i=adilger, grev Use OSTCOUNT instead hard code 2 to adapt single OST case. This test isn't necessary OSTCOUNT > 1. --- lustre/tests/sanity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c472421..f360ea2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4422,7 +4422,7 @@ test_102k() { local default_size=`$GETSTRIPE -s $test_kdir` local default_count=`$GETSTRIPE -c $test_kdir` local default_offset=`$GETSTRIPE -o $test_kdir` - $SETSTRIPE -s 65536 -i 1 -c 2 $test_kdir || error 'dir setstripe failed' + $SETSTRIPE -s 65536 -i 1 -c $OSTCOUNT $test_kdir || error 'dir setstripe failed' setfattr -n trusted.lov $test_kdir local stripe_size=`$GETSTRIPE -s $test_kdir` local stripe_count=`$GETSTRIPE -c $test_kdir` -- 1.8.3.1