Commit Graph

866 Commits (1d349cce2dc1df9c76cb2f842e3cf187b47cae9a)

Author SHA1 Message Date
Theodore Ts'o 1d349cce2d fsck.8.in: Fixed error in synopsis of the man page. 2001-08-15 19:06:55 -04:00
Theodore Ts'o 685c13f6d7 fsck.c (main): Print a warning message if there are no devices to
be checked.  (Addresses Debian bug #107458.)
2001-08-15 19:04:59 -04:00
Theodore Ts'o 88f8af61a4 fsck.c (check_all): Don't bother to interpret a device where the
pass number is zero.  (Addresses Debian bug #106696).
2001-08-15 18:39:51 -04:00
Theodore Ts'o f3561ed519 mke2fs.c (PRS): Handle -O and -s options in line in the getopt
loop, so that -s and -O handling are a bit more intuitive.
	(Not that they should be mixed anyway; -s is deprecated.)
2001-08-15 11:58:16 -04:00
Theodore Ts'o d258668d58 Give an error if -O is specified more than once to tune2fs. 2001-08-15 11:03:58 -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 5faba3acba logdump.c (do_logdump, dump_journal): Add support for dumping
external journals.
2001-08-12 03:38:51 -04:00
Theodore Ts'o 085b02cba9 mke2fs.8.in: Slim down text describing the -O flag to remove
text that erroneously implied that all features
	(including compatible flags) aren't compatible with older kernels.
2001-08-10 19:13:11 -04:00
Theodore Ts'o d494bba807 Update for 1.23-WIP-0809 release. 2001-08-09 06:14:42 -04:00
Theodore Ts'o e8a447db42 mke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if mke2fs
-O none is specified, the sparse_super feature should not be present.
2001-08-09 06:13:18 -04:00
Theodore Ts'o 1c1e004924 Add support for specifiying - as the image file (to send the image
file to standard out).

Save the journal inode if it is internal to the raw image file.
2001-08-09 06:04:32 -04:00
Theodore Ts'o 6304baf255 Add support for raw image files in e2image. 2001-08-09 05:41:29 -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 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