Whamcloud - gitweb
LU-0000 tests: fix resize test tmpfs max-file-size checking 46/9746/4
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 21 Mar 2014 07:05:51 +0000 (01:05 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 21 Mar 2014 09:54:43 +0000 (03:54 -0600)
commit35b959d2dd18b789b9cf39b7bb638fc1db3af390
tree01123e5415334c074bce0179115abadc9b0b0637
parent11820c208d368acde3eaed7ea2a10344faeae0ca
LU-0000 tests: fix resize test tmpfs max-file-size checking

Old distros may not have the "truncate" tool, so use "dd" instead.

If tmpfs cannot handle a 2GB temp file (e.g. old RHEL5 and SLES 11
kernels) then skip the test instead of failing it.  If this fails,
try to report better error messages instead of failing silently.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I575ebe1c902e34876a6f507a1a28eb30f4500c1e
tests/r_1024_small_bg/script
tests/r_64bit_big_expand/script
tests/r_bigalloc_big_expand/script
tests/r_ext4_big_expand/script
tests/r_ext4_small_bg/script
tests/scripts/resize_test