Whamcloud - gitweb
tools/e2fsprogs.git
23 years agounix_io.c (unix_open): Work around a bug in 2.4.10+ kernels by
Theodore Ts'o [Tue, 27 Nov 2001 02:05:36 +0000 (21:05 -0500)]
unix_io.c (unix_open): Work around a bug in 2.4.10+ kernels by
trying to unset the filesize limit if at all possible,
if a block device is getting opened.  (The filesize limit
shouldn't be applied against writes to a block device, but
starting in 2.4.10, the kernel is doing this.)

23 years agof_miss_blk_bmap: Add new test which checks for bug in e2fsck
Theodore Ts'o [Tue, 27 Nov 2001 01:00:07 +0000 (20:00 -0500)]
f_miss_blk_bmap: Add new test which checks for bug in e2fsck
where it wouldn't allocate a missing block bitmap on
filesystems with a blocksize of 2k or 4k.

23 years agosuper.c (check_super_block): Make sure that if the inode table
Theodore Ts'o [Mon, 26 Nov 2001 20:51:14 +0000 (15:51 -0500)]
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)

23 years ago2fsck.8.in: Fix minor typo in man page and clarify device
Theodore Ts'o [Sat, 24 Nov 2001 21:40:57 +0000 (16:40 -0500)]
2fsck.8.in: Fix minor typo in man page and clarify device
specification.

23 years agoe2image.8.in: Fix cut-and-paste typo (Addresses Debian bug #119624)
Theodore Ts'o [Sat, 24 Nov 2001 21:13:49 +0000 (16:13 -0500)]
e2image.8.in: Fix cut-and-paste typo (Addresses Debian bug #119624)

23 years agodebugfs.8.in: Update manual page to document the set_super_value
Theodore Ts'o [Sat, 24 Nov 2001 21:10:52 +0000 (16:10 -0500)]
debugfs.8.in: Update manual page to document the set_super_value
and logdump commands, and move the "specifying files"
section closer to the beginning of the man page so people
won't miss it.

setsuper.c (print_possible_fields): "set_super_value -l" now
prints out the list of valid superblock fields which the
ssv command can set.

23 years agoutil.c (check_plausibility): Use stat64 if available so that
Theodore Ts'o [Tue, 13 Nov 2001 23:49:09 +0000 (18:49 -0500)]
util.c (check_plausibility): Use stat64 if available so that
check_plausibility() works with files > 2GB.

23 years agomkjournal.c (ext2fs_add_journal_inode): When creating a .journal
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.

23 years agoDefine a new ext2 file attribute, EXT2_NOTAIL_FL,
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.

23 years agofsck.c (interpret_type): If the "auto" type is specified, make
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.

23 years agoe2image.c (output_meta_data_blocks): Optimize away excess
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>

23 years agoSupport very large files with debugfs (first pass).
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.

23 years agoChange the i_size calculation to match current kernel policy of only
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.

23 years agoAllow a single user for internal journals (the current filesystem)
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.

23 years agomke2fs.c(main): Always exit with non-zero code in case of error.
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.

23 years agoAdd libuuid man pages to the RPM spec file.
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.

23 years agoUpdate findsuper to support > 2GB device sizes.
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.

23 years agoAdded new Turkish translation file and updated e2fsprogs.pot file.
Theodore Ts'o [Mon, 8 Oct 2001 16:51:00 +0000 (12:51 -0400)]
Added new Turkish translation file and updated e2fsprogs.pot file.

23 years agojournal.c (clear_v2_journal_fields, e2fsck_journal_load): If the
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.

23 years agoe2fsck.h, journal.c (e2fsck_move_ext3_journal): Add new function
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.

23 years agoFix debugfs/logdump.c to compile with configure --disable-swapfs.
Stephen Tweedie [Thu, 27 Sep 2001 14:48:56 +0000 (15:48 +0100)]
Fix debugfs/logdump.c to compile with configure --disable-swapfs.

23 years agoADD TAG: E2FSPROGS-1.25 E2FSPROGS-1.25
Theodore Ts'o [Thu, 20 Sep 2001 14:50:04 +0000 (10:50 -0400)]
ADD TAG: E2FSPROGS-1.25

23 years agoUpdate .lsm file for 1.25 release.
Theodore Ts'o [Thu, 20 Sep 2001 14:50:04 +0000 (10:50 -0400)]
Update .lsm file for 1.25 release.

23 years agoUpdate changelogs for 1.25 release.
Theodore Ts'o [Thu, 20 Sep 2001 14:47:47 +0000 (10:47 -0400)]
Update changelogs for 1.25 release.

23 years agoUpdate for 1.25 release.
Theodore Ts'o [Thu, 20 Sep 2001 13:47:42 +0000 (09:47 -0400)]
Update for 1.25 release.

23 years agoRemove dead code that wasn't in use from tune2fs.
Theodore Ts'o [Wed, 19 Sep 2001 22:27:39 +0000 (18:27 -0400)]
Remove dead code that wasn't in use from tune2fs.

23 years agotune2fs.8.in: Update man page to reflect the fact that adding or
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.

23 years agoRemove use of AC_REQUIRE which had been used to prevent AC_CANONICAL_HOST
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.

23 years agoe2fsck: If a superblock is specified explicitly by the
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.

23 years agoismounted.c (check_mntent_file): We now validate the entry in
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.)

23 years agomke2fs.c (zap_sector): Allocate sufficient space for zero-filled
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.

23 years agoext2_ext_attr.h: Remove unneeded #include of <linux/config.h>
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)

23 years agoMake compile_et and mk_cmds safe from directory pathnames that
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.

23 years agoUpdate debian directory.
Theodore Ts'o [Thu, 13 Sep 2001 15:09:20 +0000 (11:09 -0400)]
Update debian directory.

23 years agocom_err.texinfo: Add appropriate @node and @menu lines so that
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.

23 years agocompare.c (uuid_compare), copy.c (uuid_copy),
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.

23 years agoADD TAG: E2FSPROGS-1_24a E2FSPROGS-1_24a
Theodore Ts'o [Tue, 4 Sep 2001 19:00:37 +0000 (15:00 -0400)]
ADD TAG: E2FSPROGS-1_24a

23 years agoUpdate for 1.24a release
Theodore Ts'o [Tue, 4 Sep 2001 19:00:37 +0000 (15:00 -0400)]
Update for 1.24a release

23 years agoFix version format string.
Andreas Dilger [Fri, 31 Aug 2001 16:24:46 +0000 (10:24 -0600)]
Fix version format string.

23 years agoADD TAG: E2FSPROGS-1_24 E2FSPROGS-1_24
Theodore Ts'o [Fri, 31 Aug 2001 04:59:55 +0000 (00:59 -0400)]
ADD TAG: E2FSPROGS-1_24

23 years agoUpdate for 1.24 release.
Theodore Ts'o [Fri, 31 Aug 2001 04:59:55 +0000 (00:59 -0400)]
Update for 1.24 release.

23 years agomke2fs.c (zap_sector): Now takes a third argument, which is how
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.

23 years agomke2fs.c (main): Zap the second sector of the disk, along with
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).

23 years agobadblocks.8.in: Fix spelling typo. (Addresses Debian bug #110621)
Theodore Ts'o [Thu, 30 Aug 2001 22:07:40 +0000 (18:07 -0400)]
badblocks.8.in: Fix spelling typo.  (Addresses Debian bug #110621)

23 years agogetsize.c (ext2fs_get_device_size): Back out BLKGETSIZE64
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.

23 years agolibext2fs.texinfo: Remove texinfo warnings by adding white space
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.

23 years agopass1.c (e2fsck_pass1): For EXT2_RESIZE_INO, allow its i_mode to
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).

23 years agoRemove EXT2FS_VERSION from the version display, since it
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.

23 years agoAdd missing log entry showing when we released e2fsprogs 1.23
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

23 years agoDeal with libc5's lack of strnlen.
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.

23 years agoUpdate makefile dependencies.
Theodore Ts'o [Sat, 18 Aug 2001 18:31:41 +0000 (14:31 -0400)]
Update makefile dependencies.

23 years agoMinor fixups to Andreas' changeset. Removed unused variable
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.

23 years agoget_device_by_label.[ch], fsck.c, util.c: New interpret_spec()
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.

23 years agoADD TAG: E2FSPROGS-1_23 E2FSPROGS-1_23
Theodore Ts'o [Thu, 16 Aug 2001 01:02:23 +0000 (21:02 -0400)]
ADD TAG: E2FSPROGS-1_23

23 years agoUpdate for 1.23 release.
Theodore Ts'o [Thu, 16 Aug 2001 01:02:23 +0000 (21:02 -0400)]
Update for 1.23 release.

23 years ago* tune2fs.c: Make sure that error messages are sent to stderr, and
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.)

23 years agofsck.8.in: Fixed error in synopsis of the man page.
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.

23 years agofsck.c (main): Print a warning message if there are no devices to
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.)

23 years agofsck.c (check_all): Don't bother to interpret a device where the
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).

23 years agomke2fs.c (PRS): Handle -O and -s options in line in the getopt
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.)

23 years agoGive an error if -O is specified more than once to tune2fs.
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.

23 years agosuper.c (release_orphan_inodes): If the filesystem contains
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.

23 years agoe2fsck/pass1.c (e2fsck_pass1_check_device_inode): If i_blocks is
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.

23 years agopass1.c (check_size): Fix logic in check_size; the previous code
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.

23 years agologdump.c (do_logdump, dump_journal): Add support for dumping
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.

23 years agomke2fs.8.in: Slim down text describing the -O flag to remove
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.

23 years agoUpdate for 1.23-WIP-0809 release.
Theodore Ts'o [Thu, 9 Aug 2001 10:14:42 +0000 (06:14 -0400)]
Update for 1.23-WIP-0809 release.

23 years agomke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if mke2fs
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.

23 years agoAdd support for specifiying - as the image file (to send the image
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.

23 years agoAdd support for raw image files in e2image.
Theodore Ts'o [Thu, 9 Aug 2001 09:41:29 +0000 (05:41 -0400)]
Add support for raw image files in e2image.

23 years agopass1.c, pass2.c, problem.c, problem.h: Fix bug introduced by
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.

23 years agounix.c (show_stats): Print the number of large files in verbose mode.
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.

23 years agoAdd dependencies to iscan.
Theodore Ts'o [Thu, 9 Aug 2001 00:50:57 +0000 (20:50 -0400)]
Add dependencies to iscan.

23 years agoAdd missing errcode_t variable so that iscan compiles.
Theodore Ts'o [Wed, 8 Aug 2001 20:10:23 +0000 (16:10 -0400)]
Add missing errcode_t variable so that iscan compiles.

23 years ago* journal.c (recover_ext3_journal): If s_errno is set in the
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.

23 years agoPerformance enhancements to speed up creating a journal and
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.

23 years agoIgnore .failed and .new files when running e2fsck tests.
Andreas Dilger [Sat, 4 Aug 2001 08:23:14 +0000 (02:23 -0600)]
Ignore .failed and .new files when running e2fsck tests.

23 years agoAdd ChangeLog entry for changes made by Andreas
Theodore Ts'o [Sun, 5 Aug 2001 01:33:03 +0000 (21:33 -0400)]
Add ChangeLog entry for changes made by Andreas

23 years agoChange comments for %D and %d expansion in e2fsck problem codes. It
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.

23 years agoAdd ChangeLog entry for changes made by Andreas Dilger
Theodore Ts'o [Sun, 5 Aug 2001 01:14:45 +0000 (21:14 -0400)]
Add ChangeLog entry for changes made by Andreas Dilger

23 years agoPut check for JOURNAL_DEV before sparse_option, so we don't set the
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.

23 years agoAdd ChangeLog entry for changes made by Andreas Dilger
Theodore Ts'o [Sun, 5 Aug 2001 01:00:25 +0000 (21:00 -0400)]
Add ChangeLog entry for changes made by Andreas Dilger

23 years agoAdd "*.orig" to "make clean" target, change explicit listing of
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.

23 years agoAdd -f flag to doc/Makefile $(RM) of files which may not exist.
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.

23 years agof_bad_inode, f_badsymlinks: Update expect files to reflect
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.

23 years agoCleanup changes to Andreas' symlink patch. Remove use of EXT2_LINK_DIR
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.

23 years agoAdd extra checks for bad symlinks, including zero length symlinks,
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.

23 years agoAdd several tests for bad symlinks, including immutable flags, zero
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.

23 years agotune2fs.c (update_feature_set, remove_journal_inode): If
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

23 years agotune2fs.c (update_feature_set): Don't require a forced fsck if
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.

23 years agounix.c (check_mount): Remove the code in e2fsck which tested for the
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.

23 years agounix.c (main): Move the final print_resource_track call after
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

23 years agoFix memory leaks in e2fsck's journal.c, and remove some cases
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.

23 years agofinddev.c (scan_dir): Fix memory leak; we weren't calling
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.

23 years agoe2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if
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

23 years agoADD TAG: E2FSPROGS-1_23-WIP-0727 E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 03:33:40 +0000 (23:33 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727

23 years agomkjournal.c (ext2fs_create_journal_superblock): Set the first block
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.

23 years agoADD TAG: E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 02:40:09 +0000 (22:40 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727

23 years agoUpdate problem message printed when special files have the immutable
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.

23 years agoADD TAG: E2FSPROGS-1_23-WIP-0727
Theodore Ts'o [Sat, 28 Jul 2001 02:20:06 +0000 (22:20 -0400)]
ADD TAG: E2FSPROGS-1_23-WIP-0727