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
Theodore Ts'o
b9f409255e
Update makefiles to install mkfs.ext3, and to install man pages for
...
mkfs.ext2/3 and fsck.ext2/3. Also remove any compressed man pages
before installing the man pages.
2002-02-24 03:08:57 -05:00
Theodore Ts'o
d1a2182a18
Cleaned up journal handling code in e2fsck.
...
Fixed up two minor memory leaks.
2002-02-22 00:17:59 -05:00
Theodore Ts'o
a5f3f5c191
Update files for 1.26 release.
2002-02-03 01:00:22 -05:00
Theodore Ts'o
96b5cacc04
Miscellaneous cleanup before 1.26-WIP release. Removed unused
...
.cvsignore in include/asm directory so it can disappear. Updated
makefile dependencies, and stop including <topsrc>/include in the
-I search path, since it's no longer needed.
2001-12-24 15:33:49 -05:00
Theodore Ts'o
3ed57c27df
In mke2fs and e2fsck, specifying the -c option twice will now do
...
a read/write test on the disk. Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o
fae9bfaa5c
Initialize buf to NULL to avoid crashing when called by fix_problem()
2001-12-23 22:56:12 -05:00
Theodore Ts'o
f1a1761d67
Enhnaced the get backup superblock function so that it does
...
the right thing if the filesystem superblock is unavailable;
it will search for the superblock by iterating over possible
blocksizes.
2001-12-23 22:27:52 -05:00
Theodore Ts'o
19007e51a5
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
...
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)
2001-12-23 19:33:51 -05:00
Theodore Ts'o
6a50c5ed57
Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.
2001-12-21 23:29:35 -05:00
Theodore Ts'o
d37066a9fa
Give the opportunity for e2fsck to run the journal even if
...
recovery flag is cleared. If we're using a backup
superblock, run the journal by default.
2001-12-21 23:28:54 -05:00
Theodore Ts'o
4ea7bd0439
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
...
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
2001-12-16 23:23:37 -05:00
Theodore Ts'o
8cf93332d1
Fix e2fsck's handling of external journals,and update journal
...
recovery files from 2.4.17-pre8.
2001-12-16 02:23:36 -05:00
Theodore Ts'o
571fc5a89c
Fixes necessary for e2fsprogs to work using the diet libc.
...
- Renamed linux/list.h to be linux/linked_list.h to work around a
problem caused by diet libc insistence to search the kernel
header files ahead of all other files in the include path,
including the user specified include files.
- Worked around a bug in diet libc which core dumps when using
putc with stderr by using fputs instead. As a bonus, this
also shaved a few bytes off of com_err.o.
- Fixed a real bug in debugfs which was detected because diet libc
was more sensitive than glibc when incorrectly using fclose()
where pclose() is required.
2001-12-02 17:23:27 +01:00
Gabriel Paubert
b3b3d465b1
journal.c: fix an endianness bug.
...
f_badorphan: revert previous, erroneous change.
2001-11-30 13:45:28 +01:00
Theodore Ts'o
24bfb443fc
super.c (check_super_block): Make sure that if the inode table
...
or allocation bitmap is zero, that it is marked as
invalid, so that in pass #1 , a new bitmap/inode table gets
properly allocated. (Addresses Debian Bug #116975 )
2001-11-26 15:51:14 -05:00
Theodore Ts'o
1e9a7e0278
2fsck.8.in: Fix minor typo in man page and clarify device
...
specification.
2001-11-24 16:40:57 -05:00
Andreas Dilger
6a138ed42a
Allow a single user for internal journals (the current filesystem)
...
since this is how the filesystem is created.
2001-11-08 17:50:50 -07:00
Theodore Ts'o
62e3e7fe4f
journal.c (clear_v2_journal_fields, e2fsck_journal_load): If the
...
V2 fields are set on a V1 journal superblock, or an
internal V2 journal has s_nr_users is non-zero, clear the
entire journal superblock beyond the V1 superblock. This
fixes botched V1->V2 updates.
problem.c, problem.h (PR_0_CLEAR_V2_JOURNAL): Add new problem code.
f_bad_local_jnl: New test which tests for a V2 journal with bad
fields caused by a botched V1->V2 upgrade.
2001-10-07 02:13:30 -04:00
Theodore Ts'o
773fd8a1d4
e2fsck.h, journal.c (e2fsck_move_ext3_journal): Add new function
...
which will automatically relocate the ext3 journal from a
visible file to an invisible journal file if the
filesystem has been opened read/write.
super.c (check_super_block): Add call to e2fsck_move_ext3_journal
problem.c, problem.h (PR_0_MOVE_JOURNAL, PR_0_ERR_MOVE_JOURNAL):
Add new problem codes.
2001-10-06 21:26:27 -04:00
Theodore Ts'o
fbf9111216
Update changelogs for 1.25 release.
2001-09-20 10:47:47 -04:00
Theodore Ts'o
ae6cdcf74a
e2fsck: If a superblock is specified explicitly by the
...
user, don't try to automatically fall back to an
alternate superblock.
2001-09-19 15:17:25 -04:00
Theodore Ts'o
fb70775b0f
Update for 1.24a release
2001-09-04 15:00:37 -04:00
Theodore Ts'o
109624a133
Update for 1.24 release.
2001-08-31 00:59:55 -04:00
Andreas Dilger
59f27247f8
mke2fs.c (main): Zap the second sector of the disk, along with
...
any sectors in the same filesystem block after the superblock.
The latter will remove (for example) swapspace signatures
on 4kB+ blocksize filesystems. Also when zeroing the "end"
of the filesystem don't actually zero the start of a very
small device (less than 128kB).
2001-08-30 15:39:04 -06:00
Theodore Ts'o
b1f204f7f9
pass1.c (e2fsck_pass1): For EXT2_RESIZE_INO, allow its i_mode to
...
either be zero or a regular file (for compatibility with
Andreas's on-line resizing programs).
2001-08-30 16:42:09 -04:00
Theodore Ts'o
0f8973fb09
Remove EXT2FS_VERSION from the version display, since it
...
only confuses people.
Make fsck's version display be consistent with the other e2fsprogs
programs.
2001-08-27 12:44:23 -04:00
Theodore Ts'o
943ed874fc
Add missing log entry showing when we released e2fsprogs 1.23
2001-08-27 12:29:22 -04:00
Theodore Ts'o
53abed0afa
Deal with libc5's lack of strnlen.
...
Stop checking for strdup in the configure script since we don't
care about that symbol.
2001-08-27 12:18:16 -04:00
Theodore Ts'o
eb4ab51044
super.c (release_orphan_inodes): If the filesystem contains
...
errors, don't run the orphan * list, since the orphan list
can't be trusted.
2001-08-13 10:58:41 -04:00
Theodore Ts'o
a40ecbb1fc
e2fsck/pass1.c (e2fsck_pass1_check_device_inode): If i_blocks is
...
non-zero, then assume that the device/socket/fifo inode
is bogus.
2001-08-13 06:15:36 -04:00
Theodore Ts'o
85645a6ff3
pass1.c (check_size): Fix logic in check_size; the previous code
...
only offered to clear the inode size fields if both size
and i_size_high were zero.
2001-08-13 06:11:39 -04:00
Theodore Ts'o
a474269147
pass1.c, pass2.c, problem.c, problem.h: Fix bug introduced by
...
Andreas's symlink code; check_blocks() was unconditionally testing
inode_bad_map without checking to see if it existed first. Fixed
problem a different way; we now no longer check inode_bad_map at all,
since the file might not get deleted in pass 2 anyway. We move the
large file feature reconciliation code to to e2fsck_pass2(), and in
deallocate_inode() in pass2.c, we decrement the large files counter if
we're about to delete a large file.
2001-08-09 04:14:04 -04:00
Theodore Ts'o
2b94c658c7
unix.c (show_stats): Print the number of large files in verbose mode.
2001-08-09 04:08:52 -04:00
Theodore Ts'o
e3bda78302
Add dependencies to iscan.
2001-08-08 20:50:57 -04:00
Theodore Ts'o
d4cac023c2
Add missing errcode_t variable so that iscan compiles.
2001-08-08 16:10:23 -04:00
Theodore Ts'o
c0a083fac3
* journal.c (recover_ext3_journal): If s_errno is set in the
...
journal superblock, set the EXT2_ERROR_FS flag in the
filesystem superblock after the journal is run.
2001-08-07 10:17:41 -04:00
Theodore Ts'o
bd512b6868
Add ChangeLog entry for changes made by Andreas
2001-08-04 21:33:03 -04:00
Andreas Dilger
fcdebce7df
Change comments for %D and %d expansion in e2fsck problem codes. It
...
was not consistent which was for dirent expansion, and which was for
directory number expansion.
2001-08-04 01:47:01 -06:00
Theodore Ts'o
d007cb4cbb
Cleanup changes to Andreas' symlink patch. Remove use of EXT2_LINK_DIR
...
Also cleaned up the symlink handling code to make it a bit more
compact and to test for a bad symlink block earlier.
2001-08-04 20:39:39 -04:00
Andreas Dilger
67052a8aee
Add extra checks for bad symlinks, including zero length symlinks,
...
too long i_size for slow and fast symlinks, i_size_high set, multiple
blocks for slow symlinks.
2001-08-04 00:51:18 -06:00
Theodore Ts'o
83e6ac84c7
unix.c (check_mount): Remove the code in e2fsck which tested for the
...
root filesystem being mounted read-only, and depend on the
results flags from ext2fs_check_if_mounted.
2001-07-30 16:29:52 -04:00
Theodore Ts'o
0628ae3948
unix.c (main): Move the final print_resource_track call after
...
the filesystem and context handle are closed
2001-07-29 12:26:46 -04:00
Theodore Ts'o
6d222f3217
Fix memory leaks in e2fsck's journal.c, and remove some cases
...
which look like memory leaks in unix.c so we can more easily find
the true memory leaks.
2001-07-29 12:06:58 -04:00
Theodore Ts'o
1e16526bd9
e2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if
...
it is *different* from the filesystem io channel
2001-07-29 11:48:10 -04:00
Theodore Ts'o
a092c563f7
Update problem message printed when special files have the immutable
...
flag set. Update the f_filetype test case.
2001-07-27 22:40:09 -04:00
Theodore Ts'o
fd77b2c78a
pass1.c (e2fsck_pass1): Check for symlinks that have the
...
immutable flag set (and offer to clear them).
2001-07-27 22:10:01 -04:00