aboutsummaryrefslogtreecommitdiffstats
path: root/tests/f_h_badnode
Commit message (Collapse)AuthorAgeFilesLines
* Switch back to 1.42.9 now that there is a fixJP Abgrall2014-03-191-2/+1
| | | | | | 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-061-1/+2
| | | | | | | | | | | | | | | | 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: use make rules to run tests in parallelAndreas Dilger2012-05-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Interpret negative blkcount in file system problem reportsTheodore Ts'o2009-10-041-6/+6
| | | | | | | | | | | | | | Non-expert users get confused when they see messages like this: Illegal block #-1 (2291965952) in inode 176. CLEARED. So change it to be something a little bit more understandable: Illegal indirect block (2291965952) in inode 176. CLEARED. Addresses-SourceForge-Bug: #2871782 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* e2fsck: When repacking directories, leave slack space for more efficiencyTheodore Ts'o2008-12-252-2/+2
| | | | | | | | If the directory is packed with no slack space, as soon as any new directory entries are added, leaf nodes end up getting split and directory ends up getting very inefficient. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* fix e2fsck error message for bad htree depthAndreas Dilger2008-08-241-1/+1
| | | | | | | | Fix error message to print the depth of a corrupt htree directory. Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Kalpak Shah <kalpak.shah@sun.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* e2fsck: Use "Clear Htree" instead of "Clear" when the Htree is corruptTheodore Ts'o2008-03-131-1/+1
| | | | | | | | Change the prompt so it is clear to the user that e2fsck will be clearing the htree information, not the directory inode itself, when the htree information has proven to be corrupt. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Add directory hashed signed/unsigned hint to superblockTheodore Ts'o2006-11-111-0/+0
| | | | | | | | | | | | | | | | | | | | | The e2fsprogs and kernel implementation of directory hash tree has a bug which causes the implementation to be dependent on whether characters are signed or unsigned. Platforms such as the PowerPC, Arm, and S/390 have signed characters by default, which means that hash directories on those systems are incompatible with hash directories on other systems, such as the x86. To fix this we add a new flags field to the superblock, and define two new bits in that field to indicate whether or not the directory should be signed or unsigned. If the bits are not set, e2fsck and fixed kernels will set them to the signed/unsigned value of the currently running platform, and then respect those bits when calculating the directory hash. This allows compatibility with current filesystems, as well as allowing cross-architectural compatibility. Addresses Debian Bug: #389772 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
* Clean up e2fsck problem description messages for typo's and to make themTheodore Ts'o2005-06-191-1/+1
| | | | | | | | | | | | | | | easier to understand (sorry, translators). Add new @m (multiply-claimed) and @n (invalid) expansions for e2fsck problem descriptions. Add Dutch translation, and update French translation. Add an explanation of how the @-expansion and %-exapansion works in e2fsck/problem.c to make life easier for the translators. Synchronize and update po files.
* Remove support for --enable-clear-htree; this wasTheodore Ts'o2005-02-051-1/+1
| | | | | only needed during the early development of the htree patch.
* f_h_badnode, f_h_badroot, f_h_reindex: Updated expect script toTheodore Ts'o2003-03-251-1/+0
| | | | | remove the optimizing directories message.
* Avoid counting directory entries during a directory salvage.Theodore Ts'o2002-09-301-0/+1
| | | | | | | | | | | Add additional checks to HTREE directories. We now check the count and limit fields in the htree header, as well as assuring that the hash table in each interior node is in ascending order. We also check to make sure all leaf nodes are have the expected depth in the tree. Updated test cases to deal with all of the above.
* Add e2fsck -D option which optimizes/compresses directories. Theodore Ts'o2002-07-251-2/+2
| | | | | | General cleanup of rehash code. (Fixed a few bugs, reformatted code to make it more maintainable, etc.)
* Add support to e2fsck to reindex directories to use hash trees.Theodore Ts'o2002-07-202-2/+4
|
* Add initial support for htree directories.Theodore Ts'o2002-06-255-0/+30