aboutsummaryrefslogtreecommitdiffstats
path: root/tests/r_resize_inode
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to 1.42.9 now that there is a fixJP Abgrall2014-03-192-34/+29
| | | | | | Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
* Revert changes that moved from 1.41.14 to 1.42.9JP Abgrall2014-03-062-29/+34
| | | | | | | | | | | | | | | | Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
* tests: clean up sed filtering of test outputAndreas Dilger2013-06-152-21/+16
| | | | | | | | | | | | | | | | | | | | | | The sed filters for test outputs that are used to remove build and test specific information (such as version strings, dates, times, UUIDs) were unconditionally deleting the first line of output. This would normally contain the tool version string, but in some cases contained other information that was being lost. This can lead to difficulty debugging test failures. The sed filtering has been changed to only remove the actual version strings. As well, similar filter strings were duplicated throughout many scripts, and "sed" and "tr" were often called multiple times in a pipeline. These have been consolidated into a single filter.sed file to avoid having to maintain these filters in multiple places. In a few cases, accidentally deleted messages have been restored to the expect output for the tests. In other cases, trivial whitespace has been changed in the expect files. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: use make rules to run tests in parallelAndreas Dilger2012-05-291-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the e2fsck/mke2fs/tune2fs/e2image/debugfs regression tests to be driven by Makefile rules instead of by a script loop. This allows the tests to be run in parallel like a build and reduces testing time significantly. One major change to the tests themselves is to printing the test name, description, and status together after the test has passed or failed, to avoid mixing lines from the tests. The other major change is to use unique temporary filenames for each test, which was mostly handled already via b4db1e4c7461a50e18c9fd135b9f1ba6f27e4390, but in some cases temporary files are changed to use $test_name.tmp to avoid any collision between running tests. On my old 2-CPU system it reduced the testing time from 160s to 40s. Much of the savings is from the MMP test delays running in parallel. It still takes the time of the slowest test, f_mmp_garbage, though there will be ongoing benefit in the future as more tests are added since the wallclock time will not increase linearly for each test. Tests were run with various combinations of "make -j", and "make -j2" through "make -j44" repeatedly without any test failures. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* e2fsck: avoid unnecessary reboots in some cases when checking the root fsTheodore Ts'o2011-09-301-3/+1
| | | | | | | | | | If e2fsck modifies certain superblock fields which the kernel doesn't look at, mark the superblock as dirty without marking the file system as changed. This will avoid e2fsck signalling the init scripts that a reboot is necessary. This is safe, because the kernel doesn't actually look at these superblock fields. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* tests: use /tmp for scratch filesTheodore Ts'o2011-07-092-9/+12
| | | | | | | 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>
* tune2fs, mke2fs: Change default directory hash algorithm to half_md4Theodore Ts'o2008-08-291-3/+3
| | | | | | | The half_md4 algorithm is faster and more collision resistant. Let's switch to it as the default. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Merge branch 'maint'Theodore Ts'o2008-06-171-3/+3
|\ | | | | | | | | | | | | | | Conflicts: README resize/online.c version.h
| * mke2fs, tune2fs, resize2fs: Use floating point to calculate percentagesTheodore Ts'o2008-06-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | When calculating the number reserved blocks, use floating point for better accuracy, since for big filesystems it really makes a difference. In addition, mke2fs and tune2fs accepts a floating point number from the user, so they should provide that level of accuracy. Addresses-Debian-Bug: #452639 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* | Fix the resize inode test caseAneesh Kumar K.V2008-04-271-0/+2
| | | | | | | | | | | | | | | | | | | | With the new mke2fs changes the output of the command differs if we run mke2fs on a device that already have the file system. So erase the file system before running mke2fs so that output remain as expected. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* | libe2p: Print the s_min_extra_isize and s_wanted_extra_isize fieldsTheodore Ts'o2008-04-201-3/+3
|/ | | | | | | | | Make dumpe2fs and debugfs print out the s_min_extra_isize and s_wanted_extra_isize fields from the superblock. Update tests expect files as appropriate. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Improve descriptions for the r_move_itable and r_resize_inode testsTheodore Ts'o2008-02-282-2/+2
| | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Create filesystems with the ext_attr feature by defaultTheodore Ts'o2008-01-271-3/+3
| | | | | | | | Since recent kernels have a tendency to set this feature willy-nilly, let's just enable by default. It's only very old kernels that don't support it any more. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Delete the test.img file after running the resize2fs testsTheodore Ts'o2007-09-071-2/+1
| | | | | | | The resize2fs tests, r_move_itable and r_resize_inode, were not deleting the test.img tmpfile after completing the test. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Change more "echo -n" to "printf" to avoid screen clutter.Matthias Andree2006-05-301-1/+1
| | | | | | Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
* Update tests to reflect updated mke2fs.conf fileTheodore Ts'o2006-05-241-3/+3
| | | | | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Add valgrind support to the regression test suiteTheodore Ts'o2005-08-081-1/+1
| | | | | | | | | Add the --valgrind option to the tests/test_script which allows us to run the e2fsprogs regression test suite under valgrind. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* defaults/e_script, run_e2fsck, d_loaddump, f_resize_inode,Theodore Ts'o2005-06-161-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.)
* Fix Solaris portability bug in the resize tests.Theodore Ts'o2005-01-261-5/+5
|
* Skip the r_resize_inode test if resize2fs is not compiled (due toTheodore Ts'o2005-01-211-2/+7
| | | | | configure's --disable-resizer option)
* r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,Theodore Ts'o2005-01-192-27/+18
| | | | | | m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests portable so they pass correctly on a FreeBSD system.
* f_dup_de, r_resize_inode: change ">& /dev/null" to ">/dev/null 2>&1"Matthias Andree2005-01-131-12/+12
| | | | | | | | for compatibility with FreeBSD. In $DEBUGFS commands, move the -R arg argument first so that systems with non-GNU getopt() can see the request argument (they would otherwise stop parsing at the first non-option argument).
* Add two new tests, f_resize_inode, and r_resize_inode, to the regressionTheodore Ts'o2004-12-242-0/+1750
test suite, which tests e2fsck and reszizefs2, respecitvely.