Theodore Ts'o
6cca7ba96d
Update dependency information in Makefiles
2003-03-16 20:21:16 -05:00
Theodore Ts'o
1d2eef4227
rehash.c (e2fsck_rehash_dir): If user specified the -n option,
...
skip trying to write out directory.
(e2fsck_rehash_directories): Fix the percentage
calculation in the progress bar.
2003-03-15 13:30:07 -05:00
Theodore Ts'o
52734dc532
Don't display progress bar when rebuilding directories unless
...
explicitly requested by the user.
2003-03-15 04:03:43 -05:00
Theodore Ts'o
0926668d3a
e2fsck/pass2.c (check_dir_block): Check for duplicate filenames within
...
a single directory block (because this is the easy case;
we don't currently check for duplicates that span
directory blocks, for now. Eventually for htree
directories we can do this by searching for all directory
blocks that have a hash overflow, and then searching the
adjacent blocks to find all other potential duplicates.)
2003-03-14 22:19:10 -05:00
Theodore Ts'o
e71d87317a
Add Apple/Darwin patches.
2003-03-14 02:13:48 -05:00
Theodore Ts'o
b0700a1b60
Change e2fsck to detect and offer to delete or rename duplicate
...
filenames in directories when rebuilding directories using
"e2fsck -fD /dev/XXX"
2003-03-14 01:43:56 -05:00
Theodore Ts'o
77be4d2df1
Minor man page fixes (Addresses Debian bugs #173612 , #175233 ,
...
#175113 , and #170497 )
2003-03-06 12:39:55 -05:00
Theodore Ts'o
f364093b19
Update debugfs and e2fsck to use the blkid library.
2003-03-01 19:47:44 -05:00
Theodore Ts'o
19445ef970
Fixed up minor documentation issues (man page for badblocks and usage
...
message for e2fsck).
2003-01-29 21:04:52 -05:00
Theodore Ts'o
4f489285b6
pass1.c (check_blocks): Use the EXT2_I_SIZE macro.
2003-01-22 18:28:15 -05:00
Theodore Ts'o
e34bf43aff
pass2.c (strnlen): Provide strnlen if libc doesn't.
2002-12-18 18:28:10 -05:00
Theodore Ts'o
b92ae1535c
Detect if there is an attempt to run the journal twice, and
...
abort the e2fsck run with an error if this is the case.
(Address IBM Bugzilla bug #1226 )
2003-01-02 16:53:54 -05:00
Theodore Ts'o
8161a7484f
Print an error if more than one of the -p/-a, -n or -y options
...
are passed to e2fsck.
2003-01-02 16:36:44 -05:00
Theodore Ts'o
68ef5e1f4c
Fix typo (errant extra character).
2002-12-11 12:14:43 -05:00
Theodore Ts'o
54779c66e0
Update to deal with the fact that the INDEX_FL code in the ext2 2.4
...
code accidentally had the INDEX_FL backwards compatibility code
removed. E2fsck will now fix HTREE corruptions in preen mode, and
mke2fs will not create filesystems with the dir_index flag set
by default. (The user has to specifically request it.)
2002-11-13 07:00:16 -05:00
Theodore Ts'o
38513011b9
Update files for 1.32 release.
2002-11-09 15:00:56 -05:00
Theodore Ts'o
0c897a9012
Add german translation to the language catalog
...
Fix internationalization of "pass 2" in e2fsck.
Update po files.
2002-11-09 12:01:18 -05:00
Theodore Ts'o
ae65b29f11
Update files for 1.31 release.
2002-11-08 20:08:48 -05:00
Theodore Ts'o
c1637bd371
unix.c (main): Fix a bug where e2fsck could erroneously mark a
...
filesystem as being valid if it was being checked and it
is interrupted with a ^C. (Bug introduced in e2fsprogs
1.28.)
2002-11-08 15:55:17 -05:00
Theodore Ts'o
5e72cdbeb9
unix.c (PRS), journal.c: Set the default level of journal
...
debugging to be 0, and allow the user to set the level of
journal debugging by using the E2FSCK_JBD_DEBUG
environment variable.
2002-11-08 15:35:13 -05:00
Theodore Ts'o
299d742427
Change e2fsck to force out changes to the backup copies of the
...
superblock and block group descriptors when important changes
are made to those data structures.
2002-11-08 11:10:28 -05:00
Theodore Ts'o
ee895139d7
e2fsck.h, unix.c (main, check_mount): Fix e2fsck so that it
...
returns the appropriate exit code, so that the boot
scripts will be told that they need to automatically
reboot.
2002-11-07 16:16:55 -05:00
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