Whamcloud - gitweb
Theodore Ts'o [Thu, 30 Aug 2001 21:24:02 +0000 (17:24 -0400)]
getsize.c (ext2fs_get_device_size): Back out BLKGETSIZE64
changes, since the ioctl number has been reused by another
unofficial patch.
Theodore Ts'o [Thu, 30 Aug 2001 20:43:07 +0000 (16:43 -0400)]
libext2fs.texinfo: Remove texinfo warnings by adding white space
after the function name and before the open parenthesis.
Theodore Ts'o [Thu, 30 Aug 2001 20:42:09 +0000 (16:42 -0400)]
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).
Theodore Ts'o [Mon, 27 Aug 2001 16:44:23 +0000 (12:44 -0400)]
Remove EXT2FS_VERSION from the version display, since it
only confuses people.
Make fsck's version display be consistent with the other e2fsprogs
programs.
Theodore Ts'o [Mon, 27 Aug 2001 16:29:22 +0000 (12:29 -0400)]
Add missing log entry showing when we released e2fsprogs 1.23
Theodore Ts'o [Mon, 27 Aug 2001 16:18:16 +0000 (12:18 -0400)]
Deal with libc5's lack of strnlen.
Stop checking for strdup in the configure script since we don't
care about that symbol.
Theodore Ts'o [Sat, 18 Aug 2001 18:31:41 +0000 (14:31 -0400)]
Update makefile dependencies.
Theodore Ts'o [Sat, 18 Aug 2001 18:22:25 +0000 (14:22 -0400)]
Minor fixups to Andreas' changeset. Removed unused variable
from tune2fs and added missing function prototype.
Andreas Dilger [Fri, 17 Aug 2001 09:48:11 +0000 (03:48 -0600)]
get_device_by_label.[ch], fsck.c, util.c: New interpret_spec()
function in get_device_by_label.c to allow the use of
UUID= or LABEL= when creating filesystems which use external
journal dev (e.g. mke2fs -J device=LABEL=<journal_label>).
tune2fs.c: Use superblock s_journal_uuid to locate an external
journal device instead of s_journal_dev when removing it.
Allow opening journal devices to set the label and UUID
in the ext2 superblock.
mke2fs.c, tune2fs.c: Free journal_device after use, as it is
malloc'd in interpret spec.
Theodore Ts'o [Thu, 16 Aug 2001 01:02:23 +0000 (21:02 -0400)]
ADD TAG: E2FSPROGS-1_23
Theodore Ts'o [Thu, 16 Aug 2001 01:02:23 +0000 (21:02 -0400)]
Update for 1.23 release.
Theodore Ts'o [Wed, 15 Aug 2001 23:17:37 +0000 (19:17 -0400)]
* tune2fs.c: Make sure that error messages are sent to stderr, and
normal messages are sent to stdout. (Addresses Debian bug
#108555.)
Theodore Ts'o [Wed, 15 Aug 2001 23:06:55 +0000 (19:06 -0400)]
fsck.8.in: Fixed error in synopsis of the man page.
Theodore Ts'o [Wed, 15 Aug 2001 23:04:59 +0000 (19:04 -0400)]
fsck.c (main): Print a warning message if there are no devices to
be checked. (Addresses Debian bug #107458.)
Theodore Ts'o [Wed, 15 Aug 2001 22:39:51 +0000 (18:39 -0400)]
fsck.c (check_all): Don't bother to interpret a device where the
pass number is zero. (Addresses Debian bug #106696).
Theodore Ts'o [Wed, 15 Aug 2001 15:58:16 +0000 (11:58 -0400)]
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.)
Theodore Ts'o [Wed, 15 Aug 2001 15:03:58 +0000 (11:03 -0400)]
Give an error if -O is specified more than once to tune2fs.
Theodore Ts'o [Mon, 13 Aug 2001 14:58:41 +0000 (10:58 -0400)]
super.c (release_orphan_inodes): If the filesystem contains
errors, don't run the orphan * list, since the orphan list
can't be trusted.
Theodore Ts'o [Mon, 13 Aug 2001 10:15:36 +0000 (06:15 -0400)]
e2fsck/pass1.c (e2fsck_pass1_check_device_inode): If i_blocks is
non-zero, then assume that the device/socket/fifo inode
is bogus.
Theodore Ts'o [Mon, 13 Aug 2001 10:11:39 +0000 (06:11 -0400)]
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.
Theodore Ts'o [Sun, 12 Aug 2001 07:38:51 +0000 (03:38 -0400)]
logdump.c (do_logdump, dump_journal): Add support for dumping
external journals.
Theodore Ts'o [Fri, 10 Aug 2001 23:13:11 +0000 (19:13 -0400)]
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.
Theodore Ts'o [Thu, 9 Aug 2001 10:14:42 +0000 (06:14 -0400)]
Update for 1.23-WIP-0809 release.
Theodore Ts'o [Thu, 9 Aug 2001 10:13:18 +0000 (06:13 -0400)]
mke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if mke2fs
-O none is specified, the sparse_super feature should not be present.
Theodore Ts'o [Thu, 9 Aug 2001 10:04:32 +0000 (06:04 -0400)]
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.
Theodore Ts'o [Thu, 9 Aug 2001 09:41:29 +0000 (05:41 -0400)]
Add support for raw image files in e2image.
Theodore Ts'o [Thu, 9 Aug 2001 08:14:04 +0000 (04:14 -0400)]
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.
Theodore Ts'o [Thu, 9 Aug 2001 08:08:52 +0000 (04:08 -0400)]
unix.c (show_stats): Print the number of large files in verbose mode.
Theodore Ts'o [Thu, 9 Aug 2001 00:50:57 +0000 (20:50 -0400)]
Add dependencies to iscan.
Theodore Ts'o [Wed, 8 Aug 2001 20:10:23 +0000 (16:10 -0400)]
Add missing errcode_t variable so that iscan compiles.
Theodore Ts'o [Tue, 7 Aug 2001 14:17:41 +0000 (10:17 -0400)]
* 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.
Theodore Ts'o [Mon, 6 Aug 2001 00:31:09 +0000 (20:31 -0400)]
Performance enhancements to speed up creating a journal and
block and inode allocation in general.
Andreas Dilger [Sat, 4 Aug 2001 08:23:14 +0000 (02:23 -0600)]
Ignore .failed and .new files when running e2fsck tests.
Theodore Ts'o [Sun, 5 Aug 2001 01:33:03 +0000 (21:33 -0400)]
Add ChangeLog entry for changes made by Andreas
Andreas Dilger [Sat, 4 Aug 2001 07:47:01 +0000 (01:47 -0600)]
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.
Theodore Ts'o [Sun, 5 Aug 2001 01:14:45 +0000 (21:14 -0400)]
Add ChangeLog entry for changes made by Andreas Dilger
Andreas Dilger [Sat, 4 Aug 2001 07:18:34 +0000 (01:18 -0600)]
Put check for JOURNAL_DEV before sparse_option, so we don't set the
sparse superblock flag on journal devices.
Theodore Ts'o [Sun, 5 Aug 2001 01:00:25 +0000 (21:00 -0400)]
Add ChangeLog entry for changes made by Andreas Dilger
Andreas Dilger [Sat, 4 Aug 2001 07:02:34 +0000 (01:02 -0600)]
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.
Andreas Dilger [Sat, 4 Aug 2001 06:58:54 +0000 (00:58 -0600)]
Add -f flag to doc/Makefile $(RM) of files which may not exist.
Theodore Ts'o [Sun, 5 Aug 2001 00:51:01 +0000 (20:51 -0400)]
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.
Theodore Ts'o [Sun, 5 Aug 2001 00:39:39 +0000 (20:39 -0400)]
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.
Andreas Dilger [Sat, 4 Aug 2001 06:51:18 +0000 (00:51 -0600)]
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.
Andreas Dilger [Sat, 4 Aug 2001 06:30:07 +0000 (00:30 -0600)]
Add several tests for bad symlinks, including immutable flags, zero
i_size, too large i_size, and i_size_high set.
Theodore Ts'o [Tue, 31 Jul 2001 16:03:23 +0000 (12:03 -0400)]
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
Theodore Ts'o [Mon, 30 Jul 2001 20:31:30 +0000 (16:31 -0400)]
tune2fs.c (update_feature_set): Don't require a forced fsck if
we're removing an external journal from a filesystem.
Theodore Ts'o [Mon, 30 Jul 2001 20:29:52 +0000 (16:29 -0400)]
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.
Theodore Ts'o [Sun, 29 Jul 2001 16:26:46 +0000 (12:26 -0400)]
unix.c (main): Move the final print_resource_track call after
the filesystem and context handle are closed
Theodore Ts'o [Sun, 29 Jul 2001 16:06:58 +0000 (12:06 -0400)]
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.
Theodore Ts'o [Sun, 29 Jul 2001 16:01:09 +0000 (12:01 -0400)]
finddev.c (scan_dir): Fix memory leak; we weren't calling
closedir() when exiting the function in all cases.
Theodore Ts'o [Sun, 29 Jul 2001 15:48:10 +0000 (11:48 -0400)]
e2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if
it is *different* from the filesystem io channel
Theodore Ts'o [Sat, 28 Jul 2001 03:33:40 +0000 (23:33 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 03:33:40 +0000 (23:33 -0400)]
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.
Theodore Ts'o [Sat, 28 Jul 2001 02:40:09 +0000 (22:40 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 02:40:09 +0000 (22:40 -0400)]
Update problem message printed when special files have the immutable
flag set. Update the f_filetype test case.
Theodore Ts'o [Sat, 28 Jul 2001 02:20:06 +0000 (22:20 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 02:20:06 +0000 (22:20 -0400)]
Update for 27-Jul-2001 WIP release.
Theodore Ts'o [Sat, 28 Jul 2001 02:15:06 +0000 (22:15 -0400)]
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.)
Theodore Ts'o [Sat, 28 Jul 2001 02:10:01 +0000 (22:10 -0400)]
pass1.c (e2fsck_pass1): Check for symlinks that have the
immutable flag set (and offer to clear them).
Theodore Ts'o [Sat, 28 Jul 2001 02:02:47 +0000 (22:02 -0400)]
subst.conf.in: Enable documentation of the external journal
functionality in mke2fs, e2fsck, and tune2fs.
Theodore Ts'o [Sat, 28 Jul 2001 02:00:18 +0000 (22:00 -0400)]
mke2fs.c (PRS): If the blocksize is not specified, and the journal
device is specified, user it to determine the blocksize
of the filesystem.
Theodore Ts'o [Fri, 27 Jul 2001 19:35:21 +0000 (15:35 -0400)]
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.)
Theodore Ts'o [Fri, 27 Jul 2001 03:44:39 +0000 (23:44 -0400)]
mkjournal.c (ext2fs_add_journal_device): Use the correct block
to find the journal superblock if the blocksize is 1024.
Theodore Ts'o [Thu, 26 Jul 2001 13:02:56 +0000 (09:02 -0400)]
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%!
Theodore Ts'o [Wed, 25 Jul 2001 23:48:24 +0000 (19:48 -0400)]
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.
Theodore Ts'o [Mon, 23 Jul 2001 04:23:52 +0000 (00:23 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0722
Theodore Ts'o [Mon, 23 Jul 2001 04:23:52 +0000 (00:23 -0400)]
Update for 1.23-WIP-0722 release.
Theodore Ts'o [Mon, 23 Jul 2001 04:17:49 +0000 (00:17 -0400)]
Add support for use of an external journal (so long as the external
journal only has one filesystem).
Theodore Ts'o [Fri, 20 Jul 2001 22:21:34 +0000 (18:21 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0720
Theodore Ts'o [Fri, 20 Jul 2001 22:14:10 +0000 (18:14 -0400)]
Update final changes before 1.23-WIP-0620
Theodore Ts'o [Fri, 20 Jul 2001 18:25:23 +0000 (14:25 -0400)]
fsck.8.in: Add much more explicit language documenting how the
fs_passno field in /etc/fstab is handled. (Addresses
Debian bug #30833).
Theodore Ts'o [Fri, 20 Jul 2001 18:17:19 +0000 (14:17 -0400)]
ext_attr.c (ext2fs_write_ext_attr): When writing the extended
attribute block, set the filesystem changed bit.
Theodore Ts'o [Fri, 20 Jul 2001 18:13:49 +0000 (14:13 -0400)]
unix.c (main): Add an explicit warning when the filesystem is left not
completely fixed when e2fsck exits. (Addresses Debian bug #104502.)
Theodore Ts'o [Fri, 20 Jul 2001 16:35:11 +0000 (12:35 -0400)]
Update version and release notes for 1.23 WIP release.
Theodore Ts'o [Fri, 20 Jul 2001 16:33:37 +0000 (12:33 -0400)]
Comment out ext2_find_first_bit_set and ext2fs_find_next_bit_set
since we're not using them.
Theodore Ts'o [Fri, 20 Jul 2001 00:38:53 +0000 (20:38 -0400)]
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".
Theodore Ts'o [Thu, 19 Jul 2001 20:31:25 +0000 (16:31 -0400)]
This patch completes the initial extended attribute/ACL support for
e2fsck. We now check the entire EA block to make sure that the all
of the EA entries look sane.
Theodore Ts'o [Tue, 10 Jul 2001 18:34:41 +0000 (14:34 -0400)]
Fix really stupid typo.
Theodore Ts'o [Tue, 10 Jul 2001 18:27:58 +0000 (14:27 -0400)]
Speed up journal recovery in userspace by avoiding a pointless
unconditional ext2_flush() call. Also made ext2_flush() more
efficient when the superblock is modified after the filesystem has
been flushed, and make it clear the superblock dirty flag
after doing the superblock/block group descriptor flush.
Theodore Ts'o [Tue, 10 Jul 2001 04:45:58 +0000 (00:45 -0400)]
Fix problems in po's Makefile.in.in and POTFILES.in.
Theodore Ts'o [Sun, 8 Jul 2001 03:01:31 +0000 (23:01 -0400)]
pass1b.c (pass1b, process_pass1b_block): Change the num_bad
field calculation so that it only counts EA block entries
as a single multiply claimed block (since once we clone
the EA blocks for one inode, we fix the problem for all of
the other inodes). Also, I moved the num_bad calculation
from process_pass1b_block to the end of pass1b. This
fixes a *significant* performance bug in pass1b which hit
people who had to had a lot of multiply claimed blocks.
(Can you say O(n**3) boys and girls? I knew you could...
Fortunately, this case didn't happen that much in actual practice.)
Theodore Ts'o [Sun, 8 Jul 2001 02:27:40 +0000 (22:27 -0400)]
pass1.c (e2fsck_pass1): Defer inodes which have an extended attribute
block for later processing to avoid extra seeks across the disk.
(process_inode_cmp): If there is no indirect block, sort by the
extended attribute (i_file_acl) block.
Theodore Ts'o [Sun, 8 Jul 2001 02:14:23 +0000 (22:14 -0400)]
bitops.h (ext2fs_find_first_bit_set): Use %esi instead of %ebx to
avoid register conflicts when compiling in PIC mode.
Theodore Ts'o [Sat, 7 Jul 2001 17:23:14 +0000 (13:23 -0400)]
f_badinode: Update expect.1 to match change in invalid symlink
size text.
Theodore Ts'o [Sat, 7 Jul 2001 17:20:34 +0000 (13:20 -0400)]
pass1b.c (clone_file_block): Fix bugs when cloning extended attribute
blocks. Moved free of block_buf to after the code which clones the
extattr block, and fixed logic for changing pointers to the extended
attribute field in the inodes which were affected.
(decrement_badcount): New function which is used whenever we need to
decrement the number of files which claim a particular bad block.
Fixed bug where delete_file wasn't checking check_if_fs_block() before
clearing the entry in block_dup_map. This could cause a block which
was claimed by multiple files as well as the filesystem metadata to
not be completely fixed.
Theodore Ts'o [Sat, 7 Jul 2001 15:12:50 +0000 (11:12 -0400)]
Add code to check and fix incorrect reference counts in the extended
attribute blocks.
Theodore Ts'o [Wed, 4 Jul 2001 18:04:58 +0000 (14:04 -0400)]
Add new functions to bitops.h to find quickly search for set bits in
a bitmask. (In both C and i386 assembler).
Theodore Ts'o [Wed, 4 Jul 2001 01:43:07 +0000 (21:43 -0400)]
Add support for XFS filesystems.
Theodore Ts'o [Mon, 2 Jul 2001 15:54:09 +0000 (11:54 -0400)]
Add initial support for extended attribute blocks
Theodore Ts'o [Fri, 29 Jun 2001 21:57:26 +0000 (17:57 -0400)]
Use long long to calculate the percentage
of the number of blocks in use in the filesystem.
Theodore Ts'o [Wed, 27 Jun 2001 11:51:11 +0000 (07:51 -0400)]
Don't predefine RM; it's defined by MCONFIG
Theodore Ts'o [Sat, 23 Jun 2001 04:25:18 +0000 (00:25 -0400)]
ADD TAG: E2FSPROGS-1_22
Theodore Ts'o [Sat, 23 Jun 2001 04:25:18 +0000 (00:25 -0400)]
Update size of tarball.
Theodore Ts'o [Sat, 23 Jun 2001 04:16:37 +0000 (00:16 -0400)]
Update changelogs for 1.22.
Theodore Ts'o [Sat, 23 Jun 2001 04:13:09 +0000 (00:13 -0400)]
Update for 1.22 release.
Theodore Ts'o [Sat, 23 Jun 2001 03:05:23 +0000 (23:05 -0400)]
Synchronize with Debian release 1.21+1.22-WIP-0620-1
Theodore Ts'o [Sat, 23 Jun 2001 01:52:14 +0000 (21:52 -0400)]
mkjournal.c (ext2fs_add_journal_inode): Move close of file
descriptor so that adding a journal to a mounted
filesystem doesn't die. (Fixes a bug accidentally
introduced in e2fsprogs 1.21.)
Theodore Ts'o [Sat, 23 Jun 2001 01:20:47 +0000 (21:20 -0400)]
mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if
HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
fchflags without defining UF_NODUMP. (Addresses Debian
bug #101361)
Theodore Ts'o [Sat, 23 Jun 2001 01:01:17 +0000 (21:01 -0400)]
e2fsck/flushb.c and lib/ext2fs/flushb.c: Use platform independent
method of defining the BLKFLSBUF and FDFLUSH ioctl's.
Also include sys/mount.h since on newer glibc's BLKFLSBUF
is defined there.
Theodore Ts'o [Sat, 23 Jun 2001 00:54:11 +0000 (20:54 -0400)]
bitops.h: The C language versions of ext2fs_swab16/32 need to be
included if EXT2FS_ENABLE_SWAPFS is defined, since we need to support
byte swapping even if we don't support the conversion functions.
(Fixes Debian bug #101686).