Whamcloud - gitweb
LU-1538 tests: fix test cases when OST is full
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 13 Oct 2012 21:04:44 +0000 (15:04 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 18 Oct 2012 19:13:26 +0000 (15:13 -0400)
commit3b54a23aa0191b5a3ef9d469d49a49eda66cd703
tree82a4d56bdfa69c33910ba030648cf6c9fc7fb87f
parent5dca0371d2ce9c4f54c31a9c88223a4eed77ecde
LU-1538 tests: fix test cases when OST is full

In sanity.sh test_101d() the test didn't check if "dd" failed to write
the full file size, and produced an confusing error about readahead
performance.

In sanityn.sh test_36() it also didn't check if "dd" failed to write
the full file size, and then multiop read was stuck in a loop of zero
length reads forever.  Fix both "dd" error checking, and multiop.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic4d5ec90d77b1a9302d3e8f128f292b3765611d7
Reviewed-on: http://review.whamcloud.com/4265
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Li Wei <liwei@whamcloud.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/multiop.c
lustre/tests/sanity.sh
lustre/tests/sanityn.sh