Whamcloud - gitweb
LU-202 fix the test_23 of sanity-quota.sh
authorNiu Yawei <niu@whamcloud.com>
Fri, 22 Apr 2011 03:20:29 +0000 (20:20 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Thu, 28 Apr 2011 11:59:57 +0000 (04:59 -0700)
commit3b270f6b97a8594e1863fd5a91362cfe4ffb8833
tree6376a5fc7bcfeb79c7b0c0eb034548edeca26af5
parent1b1bd1f338f36c08bcee7a620b9f66b94c3ae703
LU-202 fix the test_23 of sanity-quota.sh

test_23 uses a constant value(120000 = ~120M) to check if the system has
enough space to finish the test, so in the large OSTCOUNT testing
environment, the test will fail for short of disk space.

Changes of this patch are:
- Use a reasonable value to check free space instead of magic 120000;
- Specify the stripe index of test file for test_9/10 and test_23;
- Check free space over all OSTs, and select the ost which has enough
  space to do test. (test_9/10/23)

Issue:
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I2d9059d23cf53fee0244a226622b0e9adb800599
Reviewed-on: http://review.whamcloud.com/454
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/sanity-quota.sh