summaryrefslogtreecommitdiff
path: root/tests/f_resize_inode
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'o2-10/+10
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>
2009-10-04Merge branch 'maint' into nextTheodore Ts'o1-0/+1
Conflicts: configure configure.in misc/mke2fs.c
2009-10-04tests: Account for new mke2fs topology informationTheodore Ts'o1-0/+1
The previous commit adds a new line printed by mke2fs with the filesystem/device topology information. Update the regression test's expected output to account for this. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-08-23libext2fs: create generic numeric progress meters and use themValerie Aurora Henson1-2/+3
With 64-bit file systems, mke2fs can take a long time to do things other than write inode tables. I exported the mke2fs numeric progress meter and used it for allocating group tables and the final file system flush. Signed-off-by: Valerie Aurora (Henson) <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-10Make ext2fs_check_desc() more stringent to force use of backup superbocksTheodore Ts'o1-8/+9
E2fsck could to do more damage to a filesystem by trying to relocate inode tables due to corrupted block group descriptors, and the relocation could seriously damage the filesystem. This patch enhances ext2fs_check_desk() so it detects more self-inconsistent block group descriptors, including the cases where e2sck might be tempted to relocate the inode table, and reports the block group descriptors as invalid; this will cause e2fsck to attempt to use the backup superblocks, which hopefully have not been trashed. Addresses-Sourceforge-Bug: #1840291 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'o2-3/+3
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'o2-6/+6
set_inode to set_inode_field.
2004-12-24Add two new tests, f_resize_inode, and r_resize_inode, to the regressionTheodore Ts'o2-0/+306
test suite, which tests e2fsck and reszizefs2, respecitvely.