Theodore Ts'o
5d823a478f
Update files for 1.30 release.
2002-11-01 02:13:53 -05:00
Theodore Ts'o
4fd6834c68
unix.c (usage), e2fsck.8.in: Add the -D option to the usage and
...
command synopsis. (Addresses Debian bug #167108 )
(missed this file in the previous checkin)
2002-10-31 19:39:03 -05:00
Theodore Ts'o
b40ffd792e
unix.c (usage), e2fsck.8.in: Add the -D option to the usage and
...
command synopsis. (Addresses Debian bug #167108 )
2002-10-31 19:30:24 -05:00
Theodore Ts'o
be93ef0c14
pass1.c (e2fsck_pass1): Check the superblock write time to see
...
whether or not we can safely do the LOW_DTIME checks.
(Addresses Sourceforge bug #620980 )
2002-10-31 18:38:55 -05:00
Theodore Ts'o
482afc442d
Makefile.in (install): Search all compression extensions when
...
deleting old man pages.
2002-10-31 03:32:34 -05:00
Theodore Ts'o
76dd5e5c28
Add support for the meta_bg feature flag to the resize2fs program.
...
Fix bug in meta_bg support in mke2fs, e2fsck, and dumpe2fs; we were
incorrectly reserving the legacy block groups desriptor blocks.
2002-10-30 23:07:21 -05:00
Theodore Ts'o
a49929b656
Add support for the meta_blockgroup filesystem format. (Missing changelog)
2002-10-20 00:58:08 -04:00
Theodore Ts'o
c046ac7f2e
Add support for the meta_blockgroup filesystem format.
2002-10-20 00:38:57 -04:00
Theodore Ts'o
3e69906495
Fix gcc -Wall nits.
...
Fix format bug if NLS is in use.
Add extra so that the info directory looks OK on OpenWall.
2002-10-13 23:56:28 -04:00
Theodore Ts'o
64aecc4dd3
Fix bug in e2fsck and mklost+found; the lost+found directory should
...
created with mode 0700.
2002-10-11 17:44:12 -04:00
Theodore Ts'o
d237a78e4e
Handle BAD_BLOCK_IN_INODE_TABLE even at the beginning of the
...
inode table, and shrink code by reorganizing the while loop so
to eliminate duplicate calls to ext2fs_get_next_inode().
2002-10-03 01:09:35 -04:00
Theodore Ts'o
8132d840c8
Fix endian problems in the htree code for e2fsck and debugfs.
...
When byte-swapping a filesystem on a PPC architecture, byte-swap
the bitmaps since the historical big-endian ext2 variant had
byte-swapped bitmaps, and the ext2fs library assumes this. Otherwise
the regression test suite will fail...
2002-10-02 22:07:17 -04:00
Theodore Ts'o
ad4fa46604
Avoid counting directory entries during a directory salvage.
...
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.
2002-09-30 11:19:19 -04:00
Theodore Ts'o
e8254bfd3b
pass2.c (check_dir_block): Do a more paranoid check when trying
...
to determine whether or not a directory entry is a
completely empty leaf block or leaf node. Otherwise
e2fsck might get confused into thinking that a valid dxdir
was corrupted.
2002-09-29 19:30:28 -04:00
Theodore Ts'o
fe5b72d15e
rehash.c (e2fsck_rehash_dir): Apply patch from Christopher Li
...
which avoids creating an empty directory entry at the end
of the directory block. This screws up earlier versions
of the indexed directory patch.
2002-09-29 19:05:26 -04:00
Theodore Ts'o
e70ae99e07
Add a more sophisticated algorithm to e2fsck to salvage corrupted
...
directories.
Speed up e2fsck slightly by only updating the master superblock;
there is no point to update the backup superblocks.
Fix a small bug in the rehashing code which could leave the indexed
flag set even after the directory was compressed instead of indexed.
(Not fatal, since the kernel will deal with this, but technically
it filesystem isn't consistent, and the filesystem will be marked
as being in error when the kernel comes across the directory. It
should also never happen in real life, since directories that small
will never be indexed, but better safe than sorry.)
Also change the threshold of when directories are indexed, so that
directories of size 2 blocks will be indexed. Otherwise they will
never be indexed by the kernel when they grow.
2002-09-28 09:16:28 -04:00
Theodore Ts'o
c663305947
Update for 1.29 release.
2002-09-24 01:26:50 -04:00
Theodore Ts'o
cf3909edfe
rehash.c (copy_dir_entries): Fix bug which caused corrupted
...
directories if there are 4 or 8 bytes left over in a
directory page when optimizing/reindexing a directory.
2002-09-06 10:14:12 -04:00
Theodore Ts'o
87ee8dcad3
Update changelogs for 1.28 release
2002-08-31 03:02:57 -04:00
Theodore Ts'o
b7bad61521
Update for 1.28 release.
2002-08-31 03:00:33 -04:00
Theodore Ts'o
ceecbc75c3
ehandler.c (e2fsck_handle_read_error): If the user asks to
...
ignore the error, offer to try forcing a write of the
block to the disk; sometimes this will cause the drive to
remap the bad block.
2002-08-31 02:35:35 -04:00
Theodore Ts'o
ea1959f015
Fix a bug which caused e2fsck to fail to correctly check filesystems
...
using a non-zero hash version (i.e., half MD4 or TEA hash).
The hash version wasn't getting copied into dx_dir->hashversion and
this caused the kernel to treat all directories if they were using the
legacy hash, which was Bad.
2002-08-31 02:32:41 -04:00
Theodore Ts'o
a3da9d1df7
problem.c: Fix PR_1_RELOC_BLOCK_ALLOCATE message to explain that
...
it is necessary to find contiguous blocks in a particular
block group.
2002-08-21 12:52:03 -04:00
Theodore Ts'o
f044b4d8a0
Update and clarify man pages (addresses Debian Bug #145044 ).
...
Let e2fsck allow use of the TEA hash.
Mke2fs will no longer abort if it can't zero blocks at the end of the
filesystem. (Addresses Debian Bug #155007 )
2002-08-17 13:32:21 -04:00
Theodore Ts'o
0684a4f33b
Overhaul extended attribute handling. Should now be correct with
...
respect to the latest V2 bestbits ACL code.
2002-08-17 10:19:44 -04:00
Stephen Tweedie
eb16f861e9
Clear dtime field on truncated orphan inodes.
2002-08-14 11:00:44 +01:00
Theodore Ts'o
838e773e7a
Change e2fsck to use a red/black tree in pass1b, to remove O(n**2)
...
algorithms. Makes e2fsck much, much faster in certain rare cases
where the filesystem is severely corrupted.
2002-08-01 12:37:00 -04:00
Theodore Ts'o
850d05e9aa
Add e2fsck -D option which optimizes/compresses directories.
...
General cleanup of rehash code. (Fixed a few bugs, reformatted
code to make it more maintainable, etc.)
2002-07-25 00:00:08 -04:00
Theodore Ts'o
542867fb70
util.c (ask_yn, read_a_char): Note when the user has typed ^C,
...
and abort processing by longjmp'ing to ctx->abort_loc.
2002-07-24 07:42:02 -04:00
Theodore Ts'o
3214a453db
pass1.c (e2fsck_pass1): If e2fsck is run with -n, don't create
...
the dirs_to_hash list, since we don't want to reindex
directories if the filesystem is opened read-only.
2002-07-23 12:00:00 -04:00
Theodore Ts'o
4cae04529e
Add SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,
...
make sure we gracefully clean up and only exit at safe points.
For fsck, we pass the SIGINT/SIGTERM signal to the child processes,
so they can do their own cleanup.
2002-07-21 14:14:03 -04:00
Theodore Ts'o
b7a00563b2
Add support to e2fsck to reindex directories to use hash trees.
2002-07-20 00:28:07 -04:00
Theodore Ts'o
62acaa1de1
pass2.c (e2fsck_pass2): Use dx_dir->numblocks instead of
...
dx_dir->ino to indicate that a bad inode was cleared.
2002-07-15 16:54:42 -04:00
Theodore Ts'o
503f9e7f6e
Add support for the half-MD4 HTREE hash.
...
Add HTREE root node tests.
2002-06-26 16:52:10 -04:00
Theodore Ts'o
8fdc9985c1
Add initial support for htree directories.
2002-06-25 23:26:34 -04:00
Andreas Dilger
b21bf26778
Do sanity checking of the number of blocks and inodes in a group for
...
8192-byte and 16384-byte blocksize filesystems.
Change the default bytes-per-inode ratio of a new filesystem to be at most
one inode per block for large blocksizes.
2002-06-10 11:05:56 -06:00
Theodore Ts'o
0d63467ddb
Update to support the V2 Bestbits EA format.
2002-05-22 00:22:38 -04:00
Theodore Ts'o
da307041e7
Check for inodes which are too big (either too many blocks, or
...
would cause i_size to be too big), and offer to truncate the inode.
Remove old bogus i_size checks.
Add test case which tests e2fsck's handling of large sparse files.
Older e2fsck with the old(er) bogus i_size checks didn't handle
this correctly.
2002-05-21 21:19:14 -04:00
Theodore Ts'o
bcf9c5d401
Fix up Andreas' changeset. Avoid use of dynamic automatic arrays,
...
and check for EXT2_INDEX_FL for special devices, and consider them to
be invalid if they are set.
2002-05-21 09:14:17 -04:00
Andreas Dilger
b94a052a25
Add more complete tests for symlinks: nul termination of long links and length
...
Improve the f_badsymlinks test case for these new tests.
2002-05-18 13:16:30 -06:00
Theodore Ts'o
7823dd6572
Fix fencepost error in allocating space for array.
2002-05-17 23:37:42 -04:00
Theodore Ts'o
31e29a12d1
Fix up Andreas's 8k blocksize changes to fix a number of bugs,
...
and to make the page size determined at run-time instead of
compile time.
2002-05-17 10:53:07 -04:00
Andreas Dilger
932a489cdf
Add support for creating and checking 8192-byte blocksize filesystems.
...
We complain if you try to create such a filesystem on a system with 4096
byte PAGE_SIZE.
Add checks for valid inode size for undocumented -I option.
2002-05-16 03:20:07 -06:00
Theodore Ts'o
a8e772498c
Update for 1.27 release.
2002-03-08 03:12:14 -05:00
Theodore Ts'o
546a1ff18c
Fix various gcc -Wall complaints.
2002-03-07 23:52:56 -05:00
Theodore Ts'o
f2d5c93703
Fixed the journal handling so that an offer is made to clear the
...
journal filesystem in all cases.
Fixed a bug in e2fsck which caused it to give spurious I/O manager
bad messages right before crashes.
2002-03-07 03:13:07 -05:00
Theodore Ts'o
f122632e6b
E2fsck now prints ranges in pass 5 when printing deltas in
...
the block and inode bitmaps.
2002-03-07 02:47:07 -05:00
Theodore Ts'o
14308a5398
Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.
2002-03-05 03:26:52 -05:00
Theodore Ts'o
57173d0feb
Update Changelog messages to use tytso@mit.edu for all addresses
...
after September 7, 2001. (Forgot to update my emacs file to get
rid of the tytso@valinux.com address. Oops.)
2002-02-26 14:59:39 -05:00
Theodore Ts'o
25813b1313
Fix typo in previous changeset; the man pages for fsck.ext2 and
...
fsck.ext3 should be linked to the one for e2fsck, not fsck.
2002-02-24 03:48:45 -05:00