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
89a6ebd524
Performance enhancements to speed up creating a journal and
...
block and inode allocation in general.
2001-08-05 20:31:09 -04:00
Andreas Dilger
888b29d14b
Ignore .failed and .new files when running e2fsck tests.
2001-08-04 02:23:14 -06: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
8c97b0bf16
Add ChangeLog entry for changes made by Andreas Dilger
2001-08-04 21:14:45 -04:00
Andreas Dilger
fa72458adb
Put check for JOURNAL_DEV before sparse_option, so we don't set the
...
sparse superblock flag on journal devices.
2001-08-04 01:18:34 -06:00
Theodore Ts'o
31d0f1fa6e
Add ChangeLog entry for changes made by Andreas Dilger
2001-08-04 21:00:25 -04:00
Andreas Dilger
83d0b970b2
Add "*.orig" to "make clean" target, change explicit listing of
...
ext2_types.h in "make distclean" to $(SUBS).
Add $(SUBS) as a dependency to "make check" target.
2001-08-04 01:02:34 -06:00
Andreas Dilger
71e770ffac
Add -f flag to doc/Makefile $(RM) of files which may not exist.
2001-08-04 00:58:54 -06:00
Theodore Ts'o
9341cf2964
f_bad_inode, f_badsymlinks: Update expect files to reflect
...
changes in the problem code texts.
f_swapfs: The image file used by f_swapfs had bugs which got
caught by Andreas' changes to be more strict about
symlinks.
2001-08-04 20:51:01 -04: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
Andreas Dilger
0d9ef644d9
Add several tests for bad symlinks, including immutable flags, zero
...
i_size, too large i_size, and i_size_high set.
2001-08-04 00:30:07 -06:00
Theodore Ts'o
194686bbae
tune2fs.c (update_feature_set, remove_journal_inode): If
...
removing an in-filesystem journal, clear out the journal
inode and update the filesystem accounting structures so
we don't have to run e2fsck to clean up after ourselves
2001-07-31 12:03:23 -04:00
Theodore Ts'o
de49f015a4
tune2fs.c (update_feature_set): Don't require a forced fsck if
...
we're removing an external journal from a filesystem.
2001-07-30 16:31:30 -04: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
3751721fbb
finddev.c (scan_dir): Fix memory leak; we weren't calling
...
closedir() when exiting the function in all cases.
2001-07-29 12:01:09 -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
36be564dc2
ADD TAG: E2FSPROGS-1_23-WIP-0727
2001-07-27 23:33:40 -04:00
Theodore Ts'o
4e40f6c348
mkjournal.c (ext2fs_create_journal_superblock): Set the first block
...
usable in the journal for external journals to be 2 or 3,
depending on the blocksize, so that the existing kernel code
does the right thing.
2001-07-27 23:33:40 -04:00
Theodore Ts'o
737f066a34
ADD TAG: E2FSPROGS-1_23-WIP-0727
2001-07-27 22:40:09 -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
46b997cde3
ADD TAG: E2FSPROGS-1_23-WIP-0727
2001-07-27 22:20:06 -04:00
Theodore Ts'o
bf16d1065a
Update for 27-Jul-2001 WIP release.
2001-07-27 22:20:06 -04:00
Theodore Ts'o
343fa65e9f
getsize.c (ext2fs_get_device_size): Add support for the
...
BLKGETSIZE64 ioctl. (Ioctl defined by unofficial patches
from Ben LaHaise, but it's likely this interface won't
change.)
2001-07-27 22:15:06 -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
Theodore Ts'o
d0952b44bd
subst.conf.in: Enable documentation of the external journal
...
functionality in mke2fs, e2fsck, and tune2fs.
2001-07-27 22:02:47 -04:00
Theodore Ts'o
77dc4eb04c
mke2fs.c (PRS): If the blocksize is not specified, and the journal
...
device is specified, user it to determine the blocksize
of the filesystem.
2001-07-27 22:00:18 -04:00
Theodore Ts'o
f35e6440ef
mkjournal.c (ext2fs_add_journal_device): Use the correct block
...
when writing the journal superblock, too. (Oops! Needed
to make 1k filesystems with external journal to work.)
2001-07-27 15:35:21 -04:00
Theodore Ts'o
36131b37d7
mkjournal.c (ext2fs_add_journal_device): Use the correct block
...
to find the journal superblock if the blocksize is 1024.
2001-07-26 23:44:39 -04:00
Theodore Ts'o
24ceb248ab
pass1.c (e2fsck_pass1): Free ctx->block_ea_map at the end of pass 1.
...
This avoids increasing the memory footprint of e2fsck by 10%!
2001-07-26 09:02:56 -04:00
Theodore Ts'o
14fe1c3314
Apply fixes reported by Andreas Gruenbacher:
...
pass1.c (check_ext_attr): Skip zero-length EA entries.
problem.c: PR_1_EA_ALLOC_COLLISION shouldn't abort, but should prompt
to clear the EA block.
2001-07-25 19:48:24 -04:00
Theodore Ts'o
029326d6d1
ADD TAG: E2FSPROGS-1_23-WIP-0722
2001-07-23 00:23:52 -04:00
Theodore Ts'o
6c0a041776
Update for 1.23-WIP-0722 release.
2001-07-23 00:23:52 -04:00
Theodore Ts'o
adee8d75db
Add support for use of an external journal (so long as the external
...
journal only has one filesystem).
2001-07-23 00:17:49 -04:00
Theodore Ts'o
b170814bb0
ADD TAG: E2FSPROGS-1_23-WIP-0720
2001-07-20 18:21:34 -04:00
Theodore Ts'o
9249d980a2
Update final changes before 1.23-WIP-0620
2001-07-20 18:14:10 -04:00
Theodore Ts'o
9b61b8c424
fsck.8.in: Add much more explicit language documenting how the
...
fs_passno field in /etc/fstab is handled. (Addresses
Debian bug #30833 ).
2001-07-20 14:25:23 -04:00
Theodore Ts'o
241f7d2068
ext_attr.c (ext2fs_write_ext_attr): When writing the extended
...
attribute block, set the filesystem changed bit.
2001-07-20 14:17:19 -04:00
Theodore Ts'o
d312401961
unix.c (main): Add an explicit warning when the filesystem is left not
...
completely fixed when e2fsck exits. (Addresses Debian bug #104502.)
2001-07-20 14:13:49 -04:00
Theodore Ts'o
d1ef5c34a9
Update version and release notes for 1.23 WIP release.
2001-07-20 12:35:11 -04:00
Theodore Ts'o
6ae296e734
Comment out ext2_find_first_bit_set and ext2fs_find_next_bit_set
...
since we're not using them.
2001-07-20 12:33:37 -04:00
Theodore Ts'o
da376f5a13
fstype.c (identify_fs): New file which looks at the superblock
...
of the filesystem to determines its type.
fsck.c (fsck_device, ignore, interpret_type): Call identify_fs
if the type specified in /etc/fstab is "auto".
2001-07-19 20:38:53 -04:00