Whamcloud - gitweb
tools/e2fsprogs.git
22 years agoADD TAG: E2FSPROGS-1_26-WIP-1224 E2FSPROGS-1_26-WIP-1224
Theodore Ts'o [Mon, 24 Dec 2001 20:33:49 +0000 (15:33 -0500)]
ADD TAG: E2FSPROGS-1_26-WIP-1224

22 years agoMiscellaneous cleanup before 1.26-WIP release. Removed unused
Theodore Ts'o [Mon, 24 Dec 2001 20:33:49 +0000 (15:33 -0500)]
Miscellaneous cleanup before 1.26-WIP release.  Removed unused
.cvsignore in include/asm directory so it can disappear.  Updated
makefile dependencies, and stop including <topsrc>/include in the
-I search path, since it's no longer needed.

22 years agoRemove include/linux/ChangeLog to clean up the include/linux subdirectory.
Theodore Ts'o [Mon, 24 Dec 2001 20:24:54 +0000 (15:24 -0500)]
Remove include/linux/ChangeLog to clean up the include/linux subdirectory.

22 years agoUpdate for 1.26-WIP release.
Theodore Ts'o [Mon, 24 Dec 2001 20:22:27 +0000 (15:22 -0500)]
Update for 1.26-WIP release.

22 years agoismounted.c (is_swap_device): New function used by
Theodore Ts'o [Mon, 24 Dec 2001 20:20:22 +0000 (15:20 -0500)]
ismounted.c (is_swap_device): New function used by
ext2fs_check_if_mounted and ext2fs_check_mount_point which
determines whether or not the specified device is a swap
device by using /proc/swaps.  More bulletproofing for
idiotic/careless system administrators!

22 years agoIn mke2fs and e2fsck, specifying the -c option twice will now do
Theodore Ts'o [Mon, 24 Dec 2001 20:01:59 +0000 (15:01 -0500)]
In mke2fs and e2fsck, specifying the -c option twice will now do
a read/write test on the disk.  Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.

22 years agoFix broken Makefile dependencies.
Theodore Ts'o [Mon, 24 Dec 2001 17:42:45 +0000 (12:42 -0500)]
Fix broken Makefile dependencies.

22 years agoMke2fs now creates the lost+found directory with 0700 permissions,
Theodore Ts'o [Mon, 24 Dec 2001 14:40:00 +0000 (09:40 -0500)]
Mke2fs now creates the lost+found directory with 0700 permissions,
since files which get dropped into that directory may have come
from a protected directory, and the system administrator may not
deal with immediately.  (Addresses Debian bug #118443)

22 years agoismounted.c (check_mntent_file): Stat all of the entries in
Theodore Ts'o [Mon, 24 Dec 2001 06:40:35 +0000 (01:40 -0500)]
ismounted.c (check_mntent_file): Stat all of the entries in
/etc/mtab and/or /proc/mounts in order to catch dim-witted
system administrators who might have created alias
devices.

22 years agoInitialize buf to NULL to avoid crashing when called by fix_problem()
Theodore Ts'o [Mon, 24 Dec 2001 03:56:12 +0000 (22:56 -0500)]
Initialize buf to NULL to avoid crashing when called by fix_problem()

22 years agoEnhnaced the get backup superblock function so that it does
Theodore Ts'o [Mon, 24 Dec 2001 03:27:52 +0000 (22:27 -0500)]
Enhnaced the get backup superblock function so that it does
the right thing if the filesystem superblock is unavailable;
it will search for the superblock by iterating over possible
blocksizes.

22 years agoMove linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
Theodore Ts'o [Mon, 24 Dec 2001 00:33:51 +0000 (19:33 -0500)]
Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)

22 years agoUpdate the group descriptor free block and inode counts when
Theodore Ts'o [Sat, 22 Dec 2001 18:06:02 +0000 (13:06 -0500)]
Update the group descriptor free block and inode counts when
deleting or killing a file.

22 years agoAdd support to read out information from the LVM proc hierarchy,
Theodore Ts'o [Sat, 22 Dec 2001 05:04:22 +0000 (00:04 -0500)]
Add support to read out information from the LVM proc hierarchy,
so that the UUID cache can search the LVM logical volumes for
UUID's, labels, etc.

22 years agoChange dumpe2fs to not die if the listing of the bad blocks
Theodore Ts'o [Sat, 22 Dec 2001 04:59:46 +0000 (23:59 -0500)]
Change dumpe2fs to not die if the listing of the bad blocks
can't be found.  Slimmed down dumpe2fs by eliminating duplicate
code paths.

22 years agoUse ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.
Theodore Ts'o [Sat, 22 Dec 2001 04:29:35 +0000 (23:29 -0500)]
Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.

22 years agoGive the opportunity for e2fsck to run the journal even if
Theodore Ts'o [Sat, 22 Dec 2001 04:28:54 +0000 (23:28 -0500)]
Give the opportunity for e2fsck to run the journal even if
recovery flag is cleared.  If we're using a backup
superblock, run the journal by default.

22 years agoFix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
Theodore Ts'o [Mon, 17 Dec 2001 04:23:37 +0000 (23:23 -0500)]
Fix various gcc -Wall nits.  Fixed a bug in mke2fs where a bogus
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.

22 years agoFix e2fsck's handling of external journals,and update journal
Theodore Ts'o [Sun, 16 Dec 2001 07:23:36 +0000 (02:23 -0500)]
Fix e2fsck's handling of external journals,and update journal
recovery files from 2.4.17-pre8.

22 years ago* Add new descriptions for the following functions:
Theodore Ts'o [Tue, 11 Dec 2001 15:15:31 +0000 (10:15 -0500)]
* Add new descriptions for the following functions:
ext2fs_block_iterate, ext2fs_block_iterate2,
ext2fs_read_dir_block, ext2fs_write_dir_block,
ext2fs_new_dir_block, ext2fs_dir_iterate, ext2fs_mkdir,
ext2fs_expand_dir, ext2fs_link, ext2fs_unlink,
ext2fs_clear_block_bitmap, ext2fs_set_block_bitmap,
ext2fs_group_of_blk, ext2fs_group_of_ino.

22 years agounix_io.c (unix_open): Make sure the ulimit workaround works
Theodore Ts'o [Mon, 3 Dec 2001 04:47:32 +0000 (05:47 +0100)]
unix_io.c (unix_open): Make sure the ulimit workaround works
regardless of the version of glibc which is used to
compild e2fsprogs.

22 years agoPull up dumpe2fs cleanup patch from the experimental branch.
Theodore Ts'o [Sun, 2 Dec 2001 18:29:35 +0000 (19:29 +0100)]
Pull up dumpe2fs cleanup patch from the experimental branch.

22 years agoFixes necessary for e2fsprogs to work using the diet libc.
Theodore Ts'o [Sun, 2 Dec 2001 16:23:27 +0000 (17:23 +0100)]
Fixes necessary for e2fsprogs to work using the diet libc.

- Renamed linux/list.h to be linux/linked_list.h to work around a
  problem caused by diet libc insistence to search the kernel
  header files ahead of all other files in the include path,
  including the user specified include files.

- Worked around a bug in diet libc which core dumps when using
  putc with stderr by using fputs instead.  As a bonus, this
  also shaved a few bytes off of com_err.o.

- Fixed a real bug in debugfs which was detected because diet libc
  was more sensitive than glibc when incorrectly using fclose()
  where pclose() is required.

22 years agojournal.c: fix an endianness bug.
Gabriel Paubert [Fri, 30 Nov 2001 12:45:28 +0000 (13:45 +0100)]
journal.c: fix an endianness bug.
f_badorphan: revert previous, erroneous change.

22 years agoADD TAG: WIP-20011130 WIP-20011130
Theodore Ts'o [Fri, 30 Nov 2001 11:02:46 +0000 (12:02 +0100)]
ADD TAG: WIP-20011130

22 years agoUpdate for 1.26 WIP release.
Theodore Ts'o [Fri, 30 Nov 2001 11:02:46 +0000 (12:02 +0100)]
Update for 1.26 WIP release.

22 years agof_badorphan, f_journal: Update expect files to reflect the fact
Theodore Ts'o [Fri, 30 Nov 2001 10:52:46 +0000 (11:52 +0100)]
f_badorphan, f_journal: Update expect files to reflect the fact
that new e2fsck's will move the .journal file to a hidden
inode.

22 years agodebugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
Theodore Ts'o [Fri, 30 Nov 2001 10:51:30 +0000 (11:51 +0100)]
debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
2GB support changes: you need to use %lld when printf'ing
an long long variable.

22 years agoUpdate for 1.26-WIP release.
Theodore Ts'o [Tue, 27 Nov 2001 08:36:42 +0000 (03:36 -0500)]
Update for 1.26-WIP release.

22 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.)

22 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.

22 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)

22 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.

22 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)

22 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.

22 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.

22 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.

22 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.

22 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.

22 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>

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.)

22 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.

22 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)

22 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.

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

22 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.

22 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.

22 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

22 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

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

22 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

22 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.

22 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.

22 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).

22 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)

22 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.

22 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.

22 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).

22 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.

22 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

22 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.

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

22 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.

22 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.

22 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

22 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.

22 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.)

22 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.

22 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.)

22 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).

22 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.)

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.