Whamcloud - gitweb
Theodore Ts'o [Fri, 9 Nov 2001 22:34:54 +0000 (17:34 -0500)]
mkjournal.c (ext2fs_add_journal_inode): When creating a .journal
file on adding a journal to an already-mounted filesystem,
try to clear the ext2 file attributes on an already
existing .journal file so that we don't fail if on a
partially added journal to the filesystem.
Theodore Ts'o [Tue, 6 Nov 2001 00:22:02 +0000 (19:22 -0500)]
Define a new ext2 file attribute, EXT2_NOTAIL_FL,
which signals that a particular inode should not have the
last bits of data (the "tail") be merged with another
file. This is necessary to keep programs like LILO happy.
Theodore Ts'o [Mon, 5 Nov 2001 23:58:46 +0000 (18:58 -0500)]
fsck.c (interpret_type): If the "auto" type is specified, make
sure interpet_device() is called so that device
specifications which use LABEL= or UUID= are translated
into a real device name.
Theodore Ts'o [Mon, 5 Nov 2001 23:57:43 +0000 (18:57 -0500)]
e2image.c (output_meta_data_blocks): Optimize away excess
lseek() calls when creating a sparse file. Fewer system
calls are a good thing. <g>
Andreas Dilger [Fri, 9 Nov 2001 00:56:12 +0000 (17:56 -0700)]
Support very large files with debugfs (first pass).
If a file is created with "dd if=/dev/zero of=<file> bs=1k skip=2047M"
it is created properly by the kernel, but fails to be seen properly
by debugfs - the blocks are not shown by stat <inum>, nor can they
be found by icheck. This change fixes that.
Andreas Dilger [Fri, 9 Nov 2001 00:52:26 +0000 (17:52 -0700)]
Change the i_size calculation to match current kernel policy of only
allowing large files for regular files, as opposed to non-directories.
Andreas Dilger [Fri, 9 Nov 2001 00:50:50 +0000 (17:50 -0700)]
Allow a single user for internal journals (the current filesystem)
since this is how the filesystem is created.
Andreas Dilger [Sat, 13 Oct 2001 07:22:25 +0000 (01:22 -0600)]
mke2fs.c(main): Always exit with non-zero code in case of error.
mke2fs.c(zap_sector): Check that buffer allocation succeeded.
Andreas Dilger [Mon, 1 Oct 2001 22:02:20 +0000 (16:02 -0600)]
Add libuuid man pages to the RPM spec file.
Add a copyright statement to the libuuid man page which identifies it
as being under LGPL. While this is conveyed in the source code, it is
not mentioned anywhere in the man pages or other documentation.
Andreas Dilger [Mon, 1 Oct 2001 21:38:14 +0000 (15:38 -0600)]
Update findsuper to support > 2GB device sizes.
Add extra validity checks over just ext2 magic detection.
Add progress meter.
Theodore Ts'o [Mon, 8 Oct 2001 16:51:00 +0000 (12:51 -0400)]
Added new Turkish translation file and updated e2fsprogs.pot file.
Theodore Ts'o [Sun, 7 Oct 2001 06:13:30 +0000 (02:13 -0400)]
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.
Theodore Ts'o [Sun, 7 Oct 2001 01:26:27 +0000 (21:26 -0400)]
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.
Stephen Tweedie [Thu, 27 Sep 2001 14:48:56 +0000 (15:48 +0100)]
Fix debugfs/logdump.c to compile with configure --disable-swapfs.
Theodore Ts'o [Thu, 20 Sep 2001 14:50:04 +0000 (10:50 -0400)]
ADD TAG: E2FSPROGS-1.25
Theodore Ts'o [Thu, 20 Sep 2001 14:50:04 +0000 (10:50 -0400)]
Update .lsm file for 1.25 release.
Theodore Ts'o [Thu, 20 Sep 2001 14:47:47 +0000 (10:47 -0400)]
Update changelogs for 1.25 release.
Theodore Ts'o [Thu, 20 Sep 2001 13:47:42 +0000 (09:47 -0400)]
Update for 1.25 release.
Theodore Ts'o [Wed, 19 Sep 2001 22:27:39 +0000 (18:27 -0400)]
Remove dead code that wasn't in use from tune2fs.
Theodore Ts'o [Wed, 19 Sep 2001 19:28:21 +0000 (15:28 -0400)]
tune2fs.8.in: Update man page to reflect the fact that adding or
removing a journal doesn't require running e2fsck.
Theodore Ts'o [Wed, 19 Sep 2001 19:20:12 +0000 (15:20 -0400)]
Remove use of AC_REQUIRE which had been used to prevent AC_CANONICAL_HOST
from being called twice, since it gives recent autoconf programs
heartburn (and doesn't seem to be required anymore), anyway.
Theodore Ts'o [Wed, 19 Sep 2001 19:17:25 +0000 (15:17 -0400)]
e2fsck: If a superblock is specified explicitly by the
user, don't try to automatically fall back to an
alternate superblock.
Theodore Ts'o [Fri, 14 Sep 2001 11:44:25 +0000 (07:44 -0400)]
ismounted.c (check_mntent_file): We now validate the entry in
/etc/mtab to make sure the filesystem is really mounted,
since some broken distributions (read: Slackware) have
buggy boot scripts that don't initialize /etc/mtab before
checking non-root filesystems. (Slackware also doesn't
check the root filesystem separately, and reboot if the
root filesystem had changes applied to it, which is
dangerous and broken.)
Theodore Ts'o [Mon, 17 Sep 2001 14:38:06 +0000 (10:38 -0400)]
mke2fs.c (zap_sector): Allocate sufficient space for zero-filled
buffer.
Theodore Ts'o [Mon, 17 Sep 2001 04:02:21 +0000 (00:02 -0400)]
ext2_ext_attr.h: Remove unneeded #include of <linux/config.h>
which was breaking the build on the hurd. (Addresses
Debain bug #112414)
Theodore Ts'o [Mon, 17 Sep 2001 03:29:17 +0000 (23:29 -0400)]
Make compile_et and mk_cmds safe from directory pathnames that
contain spaces.
Theodore Ts'o [Thu, 13 Sep 2001 15:09:20 +0000 (11:09 -0400)]
Update debian directory.
Theodore Ts'o [Tue, 11 Sep 2001 04:38:03 +0000 (00:38 -0400)]
com_err.texinfo: Add appropriate @node and @menu lines so that
the a valid .info file can be made. Use @deftypefun to
define functions. Change the e-mail address where bug
reports to be sent to be is the e2fsprogs maintainer.
Theodore Ts'o [Tue, 11 Sep 2001 00:30:09 +0000 (20:30 -0400)]
compare.c (uuid_compare), copy.c (uuid_copy),
isnull.c (uuid_is_null), pack.c (uuid_pack),
parse.c (uuid_parse), unpack.c (uuid_unpack),
unparse.c (uuid_unparse), uuid.h, uuidP.h,
uuid_time.c (uuid_time, uuid_type, uuid_variant):
Use const for pointer variables that we don't modify. Add
the appropriate ifdef's in uuid.h to make it be C++ friendly.
Theodore Ts'o [Tue, 4 Sep 2001 19:00:37 +0000 (15:00 -0400)]
ADD TAG: E2FSPROGS-1_24a
Theodore Ts'o [Tue, 4 Sep 2001 19:00:37 +0000 (15:00 -0400)]
Update for 1.24a release
Andreas Dilger [Fri, 31 Aug 2001 16:24:46 +0000 (10:24 -0600)]
Fix version format string.
Theodore Ts'o [Fri, 31 Aug 2001 04:59:55 +0000 (00:59 -0400)]
ADD TAG: E2FSPROGS-1_24
Theodore Ts'o [Fri, 31 Aug 2001 04:59:55 +0000 (00:59 -0400)]
Update for 1.24 release.
Theodore Ts'o [Fri, 31 Aug 2001 01:55:26 +0000 (21:55 -0400)]
mke2fs.c (zap_sector): Now takes a third argument, which is how
many sectors to clear out. Fixed up Andreas's patch to
make it a bit more efficient/compact.
Andreas Dilger [Thu, 30 Aug 2001 21:39:04 +0000 (15:39 -0600)]
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).
Theodore Ts'o [Thu, 30 Aug 2001 22:07:40 +0000 (18:07 -0400)]
badblocks.8.in: Fix spelling typo. (Addresses Debian bug #110621)
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.