Whamcloud - gitweb
tests: fix resize test tmpfs max-file-size checking
authorAndreas Dilger <andreas.dilger@intel.com>
Mon, 14 Apr 2014 16:48:16 +0000 (12:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Apr 2014 17:51:24 +0000 (13:51 -0400)
commit5bb66e37d668697092b467460e0ea151fefdd744
treeb0b7d3f376a19ba5df9d769db89de8809bf7cdde
parentd8f401b13568389ac0f67af0c653f153b5f0bd09
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>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
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