summaryrefslogtreecommitdiff
path: root/tests/f_resize_inode/script
AgeCommit message (Collapse)AuthorFilesLines
2011-09-15e2fsprogs: Use punch hole as "discard" on regular filesLukas Czerner1-0/+1
If e2fsprogs tools (mke2fs, e2fsck) is run on regular file instead of on block device, we can use punch hole instead of regular discard command which would not work on regular file anyway. This gives us several advantages. First of all when e2fsck is run with '-E discard' parameter it will punch out all ununsed space from the image, hence trimming down the file system image. And secondly, when creating an file system on regular file (with '-E discard' which is default), we can use punch hole to clear the file content, hence we can skip inode table initialization, because reads from sparse area returns zeros. This will result in faster file system creation (without the need to specify lazy_itable_init) and smaller images. This commit also fixes some tests that would fail due to mke2fs showing discard progress, hence the output would differ. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-09-03tests: skip tests that require debugfs if debugfs has not been builtTheodore Ts'o1-0/+6
Avoid lots of tests failing if e2fsprogs is compiled with --disable-debugfs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-07-09tests: use /tmp for scratch filesTheodore Ts'o1-5/+5
The /tmp directory is often a memory based file system, and using this can speed up running the regression test suite. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-05-30Change more "echo -n" to "printf" to avoid screen clutter.Matthias Andree1-1/+1
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
2005-06-16defaults/e_script, run_e2fsck, d_loaddump, f_resize_inode,Theodore Ts'o1-1/+1
f_swapfs, f_move_itable, f_resize_inode, test_config: Allow the diff options to be set in test_config so that diff -u can be used on platforms that have it. (To be done: checking whether diff can support -u in the configure script.)
2005-01-19r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,Theodore Ts'o1-2/+2
m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests portable so they pass correctly on a FreeBSD system.
2005-01-07Fix f_resize_inode test to deal with the renaming of the debugfs commandTheodore Ts'o1-4/+4
set_inode to set_inode_field.
2004-12-24Add two new tests, f_resize_inode, and r_resize_inode, to the regressionTheodore Ts'o1-0/+140
test suite, which tests e2fsck and reszizefs2, respecitvely.