]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
tests: check backing filesystem can handle large file
authorAndreas Dilger <adilger@dilger.ca>
Tue, 3 Dec 2013 05:11:55 +0000 (00:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Dec 2013 05:11:55 +0000 (00:11 -0500)
commit5ad07acadcc522d4963c43ab094f9e5bb7508bfa
treebf7457f5da37593f17de09686c7b54b9a590db56
parent144f4e8ca511ef699570bc0426d5969d2b903d77
tests: check backing filesystem can handle large file

The new resize tests create 2TB test files, but tmpfs in kernels
before 3.1 have a max file size of 256GB.  Ext3 may also have
a size limit for smaller blocksize filesystems.

Fix the resize_test script to verify that $TMPFILE can be resized
to the final test size, and if that fails try creating the file on
the local filesystem instead of in $TMPDIR.  If that cannot hold
the large filesystem, skip the test.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Tested-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/r_64bit_big_expand/script
tests/r_bigalloc_big_expand/script
tests/r_ext4_big_expand/script
tests/scripts/resize_test