Whamcloud - gitweb
tools/e2fsprogs.git
21 years agoADD TAG: E2FSPROGS-1_29 E2FSPROGS-1_29
Theodore Ts'o [Tue, 24 Sep 2002 05:32:57 +0000 (01:32 -0400)]
ADD TAG: E2FSPROGS-1_29

21 years agoUpdate LSM file for 1.29 release.
Theodore Ts'o [Tue, 24 Sep 2002 05:32:57 +0000 (01:32 -0400)]
Update LSM file for 1.29 release.

21 years agoSynchronize with Debian 1.28-5.
Theodore Ts'o [Tue, 24 Sep 2002 05:30:00 +0000 (01:30 -0400)]
Synchronize with Debian 1.28-5.

21 years agoUpdate for 1.29 release.
Theodore Ts'o [Tue, 24 Sep 2002 05:26:50 +0000 (01:26 -0400)]
Update for 1.29 release.

21 years agofsck.c: If the bone-headed user enters the filename twice, the
Theodore Ts'o [Tue, 24 Sep 2002 04:13:19 +0000 (00:13 -0400)]
fsck.c: If the bone-headed user enters the filename twice, the
-R option which skips the root filesystem will skip all of
them.  (Addresses Debian bug #159423).  Note!  This is not
a precedent for dealing intelligently with any other kind
of doubled entry in /etc/fstab!

21 years agolib/et/internal.h: Remove declaration of perror. All modern systems
Theodore Ts'o [Tue, 24 Sep 2002 03:51:57 +0000 (23:51 -0400)]
lib/et/internal.h: Remove declaration of perror.  All modern systems
can be expected to define perror() these days.

21 years agomke2fs.c (main): Enable directory indexing by default.
Theodore Ts'o [Sun, 22 Sep 2002 19:37:40 +0000 (15:37 -0400)]
mke2fs.c (main): Enable directory indexing by default.

tune2fs.c (update_feature_set): Allow directory indexing flag to
be set.  If so, set the default hash to be TEA, and
initialize the hash seed to a random value.

21 years agoFlag continuation hashes in debugfs's htree command to make them
Theodore Ts'o [Sun, 22 Sep 2002 19:27:28 +0000 (15:27 -0400)]
Flag continuation hashes in debugfs's htree command to make them
easier to find.

21 years agoget_device_by_label.c (init_lvm): Fix bug which caused
Theodore Ts'o [Sat, 21 Sep 2002 10:46:43 +0000 (06:46 -0400)]
get_device_by_label.c (init_lvm): Fix bug which caused
LABEL='xxx' to not work correctly when using LVM.
(Reversed sense of error check reported by ateeq@hotpop.com)

21 years agorehash.c (copy_dir_entries): Fix bug which caused corrupted
Theodore Ts'o [Fri, 6 Sep 2002 14:14:12 +0000 (10:14 -0400)]
rehash.c (copy_dir_entries): Fix bug which caused corrupted
directories if there are 4 or 8 bytes left over in a
directory page when optimizing/reindexing a directory.

21 years agoADD TAG: E2FSPROGS-1_28 E2FSPROGS-1_28
Theodore Ts'o [Sat, 31 Aug 2002 07:12:42 +0000 (03:12 -0400)]
ADD TAG: E2FSPROGS-1_28

21 years agoUpdate changelogs for 1.28 release
Theodore Ts'o [Sat, 31 Aug 2002 07:02:57 +0000 (03:02 -0400)]
Update changelogs for 1.28 release

21 years agoUpdate for 1.28 release.
Theodore Ts'o [Sat, 31 Aug 2002 07:00:33 +0000 (03:00 -0400)]
Update for 1.28 release.

21 years agoehandler.c (e2fsck_handle_read_error): If the user asks to
Theodore Ts'o [Sat, 31 Aug 2002 06:35:35 +0000 (02:35 -0400)]
ehandler.c (e2fsck_handle_read_error): If the user asks to
ignore the error, offer to try forcing a write of the
block to the disk; sometimes this will cause the drive to
remap the bad block.

21 years agoFix a bug which caused e2fsck to fail to correctly check filesystems
Theodore Ts'o [Sat, 31 Aug 2002 06:32:41 +0000 (02:32 -0400)]
Fix a bug which caused e2fsck to fail to correctly check filesystems
using a non-zero hash version (i.e., half MD4 or TEA hash).

The hash version wasn't getting copied into dx_dir->hashversion and
this caused the kernel to treat all directories if they were using the
legacy hash, which was Bad.

21 years agoAdd support for the hash_seed and s_def_hash_ver fields in the
Theodore Ts'o [Sat, 24 Aug 2002 04:04:03 +0000 (00:04 -0400)]
Add support for the hash_seed and s_def_hash_ver fields in the
superblock.  Dumpe2fs can now print out these fields, and they
can be modified using debugfs's set_super_value command.  Also added
to debugfs was the ability to set s_uuid and s_journal_uuid features
as well.

21 years agoproblem.c: Fix PR_1_RELOC_BLOCK_ALLOCATE message to explain that
Theodore Ts'o [Wed, 21 Aug 2002 16:52:03 +0000 (12:52 -0400)]
problem.c: Fix PR_1_RELOC_BLOCK_ALLOCATE message to explain that
it is necessary to find contiguous blocks in a particular
block group.

21 years agovalid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which
Theodore Ts'o [Tue, 20 Aug 2002 05:14:30 +0000 (01:14 -0400)]
valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which
failed to accurately characterize non-standard slow
symlinks.  (Which don't appear in practice on real-life
systems, fortunately.)

21 years agoADD TAG: E2FSPROGS-1.28-WIP-0817 E2FSPROGS-1.28-WIP-0817
Theodore Ts'o [Sun, 18 Aug 2002 07:48:55 +0000 (03:48 -0400)]
ADD TAG: E2FSPROGS-1.28-WIP-0817

21 years agoEnable HTREE support by default.
Theodore Ts'o [Sun, 18 Aug 2002 07:48:55 +0000 (03:48 -0400)]
Enable HTREE support by default.

21 years agoUpdate version string for WIP release.
Theodore Ts'o [Sun, 18 Aug 2002 07:38:15 +0000 (03:38 -0400)]
Update version string for WIP release.

21 years agoMakefile.in: Revamp makefile so that it doesn't depend
Theodore Ts'o [Sun, 18 Aug 2002 07:37:10 +0000 (03:37 -0400)]
Makefile.in: Revamp makefile so that it doesn't depend
--enable-elf-shlibs.  We always build the shared library,
since it's meant to be used as a plugin library.

21 years agoClean up fsck handling, and fix bug which caused fs_shrink and
Theodore Ts'o [Sun, 18 Aug 2002 06:44:58 +0000 (02:44 -0400)]
Clean up fsck handling, and fix bug which caused fs_shrink and
fs_expand to abort if fsck fixed a problem and exited with a
status code of 1.

21 years agoMore EVMS 1.1 CVS synchronization.
Theodore Ts'o [Sun, 18 Aug 2002 06:00:42 +0000 (02:00 -0400)]
More EVMS 1.1 CVS synchronization.

Fix up logging macros to use __FUNCTION__ correctly.

21 years agofs_ext2.c, fsimext2.c: Synchronize with EVMS CVS tree.
Theodore Ts'o [Sun, 18 Aug 2002 05:48:46 +0000 (01:48 -0400)]
fs_ext2.c, fsimext2.c: Synchronize with EVMS CVS tree.
Fixed up confusion caused by bad parameter names for
get_fs_limits().  Added missing conversion of
volume->vol_size from sectors to bytes.  Fix up error
returns for unsupported tasks as EINVAL, not ENOSYS.
Use logical names for the API version numbers, since
the ABI is much more dependent on the headers.  Add
code to byte-swap the superblock if necessary.

21 years agocommon.h, dlist.h, enginestructs.h, options.h, plugfuncs.c,
Theodore Ts'o [Sun, 18 Aug 2002 05:11:12 +0000 (01:11 -0400)]
common.h, dlist.h, enginestructs.h, options.h, plugfuncs.c,
fs_ext2.c: Synchronize with ABI of EVMS 1.1.

21 years agoAdd support for searching /proc/evms/volumes when interpreting
Theodore Ts'o [Sun, 18 Aug 2002 03:01:22 +0000 (23:01 -0400)]
Add support for searching /proc/evms/volumes when interpreting
LABEL=xxx or UUID=xxx.

Add new utility program /sbin/findfs, which interprets LABEL=xxx or
UUID=xxx, and returns the device name.  (Part of tune2fs).

21 years agoUpdate to debian's 1.27+1.28-WIP-0626-1
Theodore Ts'o [Sun, 18 Aug 2002 01:11:29 +0000 (21:11 -0400)]
Update to debian's 1.27+1.28-WIP-0626-1

Revert the shlibs hack.

Makefile.in: Remove inode_io.o from the standard object files
in libext2fs, and only build it if debugfs is enabled
(it requires fileio.o, which is only built if
--disable-debugfs isn't specified to configure).

21 years agomke2fs.8.in: Add a common usage of the -n option. (Addresses
Theodore Ts'o [Sat, 17 Aug 2002 22:16:29 +0000 (18:16 -0400)]
mke2fs.8.in: Add a common usage of the -n option.  (Addresses
Debian Bug #146437)

21 years agofsck.c (main): If no filesystems are specified on the command
Theodore Ts'o [Sat, 17 Aug 2002 21:39:39 +0000 (17:39 -0400)]
fsck.c (main): If no filesystems are specified on the command
line, default to -As.  (Addresses Debian Bug #153102)

badblocks.8.in: Clarify why it's bad to do a non-destructive
test on a r/o mounted filesystem.  (Addresses Debian Bug
#131350)

21 years agochattr.1.in: Document the compression attribute flags E, X, and
Theodore Ts'o [Sat, 17 Aug 2002 18:44:56 +0000 (14:44 -0400)]
chattr.1.in: Document the compression attribute flags E, X, and
Z, and explain that chattr can't set or set these flags.
(Addresses Debian Bug #151990)

fsetflags.c (fsetflags), fgetflags.c (fgetflags.c), setflags.c
(setflags), getflags.c (getflags): Check to make sure the
file is a regular file or a directory before attempting to
use the ext2 ioctls.  Otherwise, return EOPNOTSUPP.
(Addresses Debian Bug #152029).

21 years agoUpdate and clarify man pages (addresses Debian Bug #145044).
Theodore Ts'o [Sat, 17 Aug 2002 17:32:21 +0000 (13:32 -0400)]
Update and clarify man pages (addresses Debian Bug #145044).

Let e2fsck allow use of the TEA hash.

Mke2fs will no longer abort if it can't zero blocks at the end of the
filesystem.  (Addresses Debian Bug #155007)

21 years agoModify the half MD4 hash so it is no longer endian dependent. This is
Theodore Ts'o [Sat, 17 Aug 2002 14:52:51 +0000 (10:52 -0400)]
Modify the half MD4 hash so it is no longer endian dependent.  This is
a backwards incompatible change, but this should be OK since the kernel
MD4 ext3 code was only in the CVS tree, and hasn't generally escaped.

Add support for the TEA hash.

21 years agoOverhaul extended attribute handling. Should now be correct with
Theodore Ts'o [Sat, 17 Aug 2002 14:19:44 +0000 (10:19 -0400)]
Overhaul extended attribute handling.  Should now be correct with
respect to the latest V2 bestbits ACL code.

21 years agoFix stupid typo in previous changeset.
Theodore Ts'o [Fri, 16 Aug 2002 21:07:06 +0000 (17:07 -0400)]
Fix stupid typo in previous changeset.

21 years agoFix up extended attribute handling in e2image, resize2fs, and in
Theodore Ts'o [Fri, 16 Aug 2002 21:03:59 +0000 (17:03 -0400)]
Fix up extended attribute handling in e2image, resize2fs, and in
debugfs's icheck command.

21 years agoClear dtime field on truncated orphan inodes.
Stephen Tweedie [Wed, 14 Aug 2002 10:00:44 +0000 (11:00 +0100)]
Clear dtime field on truncated orphan inodes.

21 years agoMakefile.in: Move dupfs.o and test_io.o from the
Theodore Ts'o [Tue, 13 Aug 2002 19:16:47 +0000 (15:16 -0400)]
Makefile.in: Move dupfs.o and test_io.o from the
needed-by-debugfs object list to the needed-by-resizer
object list.  Fixes compile problem if the system is built
with only --disable-debugfs.

21 years agoChange e2fsck to use a red/black tree in pass1b, to remove O(n**2)
Theodore Ts'o [Thu, 1 Aug 2002 16:37:00 +0000 (12:37 -0400)]
Change e2fsck to use a red/black tree in pass1b, to remove O(n**2)
algorithms.  Makes e2fsck much, much faster in certain rare cases
where the filesystem is severely corrupted.

21 years agolink.c (ext2fs_link): When adding a new link to a directory,
Theodore Ts'o [Mon, 29 Jul 2002 23:26:33 +0000 (19:26 -0400)]
link.c (ext2fs_link): When adding a new link to a directory,
clear the HTREE bit.

21 years agoresize2fs.c (block_mover): If there are no blocks to move,
Theodore Ts'o [Fri, 26 Jul 2002 05:56:22 +0000 (01:56 -0400)]
resize2fs.c (block_mover): If there are no blocks to move,
release the bmap table.  This significantly speeds up
resize2fs when shrinking or expanding a filesystem by a
very small number of blocks (which EVMS will do).

21 years agoAdd e2fsck -D option which optimizes/compresses directories.
Theodore Ts'o [Thu, 25 Jul 2002 04:00:08 +0000 (00:00 -0400)]
Add e2fsck -D option which optimizes/compresses directories.

General cleanup of rehash code.  (Fixed a few bugs, reformatted
code to make it more maintainable, etc.)

21 years agoutil.c (ask_yn, read_a_char): Note when the user has typed ^C,
Theodore Ts'o [Wed, 24 Jul 2002 11:42:02 +0000 (07:42 -0400)]
util.c (ask_yn, read_a_char): Note when the user has typed ^C,
and abort processing by longjmp'ing to ctx->abort_loc.

21 years agodirhash.c (ext2fs_dirhash): Fix bug which caused MD4
Theodore Ts'o [Tue, 23 Jul 2002 17:11:53 +0000 (13:11 -0400)]
dirhash.c (ext2fs_dirhash): Fix bug which caused MD4
calculations for names > 32 characters to be completely
bogus.  Changed MD4 calculation to match what is currently
being used in the CVS gkernel tree.

21 years agopass1.c (e2fsck_pass1): If e2fsck is run with -n, don't create
Theodore Ts'o [Tue, 23 Jul 2002 16:00:00 +0000 (12:00 -0400)]
pass1.c (e2fsck_pass1): If e2fsck is run with -n, don't create
the dirs_to_hash list, since we don't want to reindex
directories if the filesystem is opened read-only.

21 years agohtree.c (do_htree_dump): Fix a bug where we were not cleanly
Theodore Ts'o [Sun, 21 Jul 2002 18:17:45 +0000 (14:17 -0400)]
htree.c (do_htree_dump): Fix a bug where we were not cleanly
closing the pager after errors, which would leave the
tty in noecho mode.

21 years agoAdd SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,
Theodore Ts'o [Sun, 21 Jul 2002 18:14:03 +0000 (14:14 -0400)]
Add SIGINT and SIGTERM handling to fsck and e2fsck.  For e2fsck,
make sure we gracefully clean up and only exit at safe points.
For fsck, we pass the SIGINT/SIGTERM signal to the child processes,
so they can do their own cleanup.

21 years agoAdd support to e2fsck to reindex directories to use hash trees.
Theodore Ts'o [Sat, 20 Jul 2002 04:28:07 +0000 (00:28 -0400)]
Add support to e2fsck to reindex directories to use hash trees.

21 years agodirhash.c (halfMD4Transform): Shift the hash by one bit,
Theodore Ts'o [Sat, 20 Jul 2002 02:30:37 +0000 (22:30 -0400)]
dirhash.c (halfMD4Transform): Shift the hash by one bit,
since that's required by the directory indexing code.

21 years agohtree.c (htree_dump_int_node): Add byte swapping code sot that
Theodore Ts'o [Fri, 19 Jul 2002 02:19:51 +0000 (22:19 -0400)]
htree.c (htree_dump_int_node): Add byte swapping code sot that
the htree dump function works on a big-endian machine.

21 years agoparse.c (uuid_parse): Fix uuid parsing bug which didn't complain
Theodore Ts'o [Tue, 16 Jul 2002 03:49:57 +0000 (23:49 -0400)]
parse.c (uuid_parse): Fix uuid parsing bug which didn't complain
for certain types of invalid input text.  (Addresses
Debian bug #152891).

tst_uuid.c: Add test cases for invalid text strings passed to
uuid_parse.

21 years agodebugfs.c (do_show_super_stats): Calculate and print the number
Theodore Ts'o [Mon, 15 Jul 2002 20:56:41 +0000 (16:56 -0400)]
debugfs.c (do_show_super_stats): Calculate and print the number
of directories on a filesystem --- because we can and
because it can be useful.

21 years agopass2.c (e2fsck_pass2): Use dx_dir->numblocks instead of
Theodore Ts'o [Mon, 15 Jul 2002 20:54:42 +0000 (16:54 -0400)]
pass2.c (e2fsck_pass2): Use dx_dir->numblocks instead of
dx_dir->ino to indicate that a bad inode was cleared.

21 years agofsetflags.c (fsetflags), fgetflags.c (fgetflags): Save
Theodore Ts'o [Sun, 14 Jul 2002 20:13:55 +0000 (16:13 -0400)]
fsetflags.c (fsetflags), fgetflags.c (fgetflags):  Save
errno if the ioctl fails, and restore it just before we
return.

21 years agoext2fs.h, read_bb_file.c: Change private to priv_data, to avoid
Theodore Ts'o [Sun, 14 Jul 2002 20:00:50 +0000 (16:00 -0400)]
ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid
using a C++ reserved word.

21 years agoVarious portability fixes which should help out HURD.
Theodore Ts'o [Sun, 14 Jul 2002 19:58:38 +0000 (15:58 -0400)]
Various portability fixes which should help out HURD.

The iterate_on_dir function in libe2p has been changed to be more
general, so it relies less on the layout of struct dirent.  We also
make sure the errno returned by the ioctl is returned by
fgetversion() and fsetversion().

21 years agounix_io.c (unix_open): Only attempt the setrlimit workaround if
Theodore Ts'o [Sun, 14 Jul 2002 12:33:32 +0000 (08:33 -0400)]
unix_io.c (unix_open): Only attempt the setrlimit workaround if
the kernel version is 2.4.10 -- 2.4.17, since otherwise an
old version of glibc (built against 2.2 headers) will
interact badly with the workaround to actually cause more
problems.  I hate it when the glibc folks think they're
being smarter than the kernel....

21 years agomke2fs.c (zap_sector): Clear the buffer *after* testing for the
Theodore Ts'o [Sun, 14 Jul 2002 12:00:00 +0000 (08:00 -0400)]
mke2fs.c (zap_sector): Clear the buffer *after* testing for the
BSD sector label.  Otherwise the first 512 bytes don't get
zapped.  (Addresses Debian bug #147256.)

21 years agoext2_fs.h: Add superblock field for reserved group descriptors.
Theodore Ts'o [Tue, 9 Jul 2002 15:08:10 +0000 (11:08 -0400)]
ext2_fs.h: Add superblock field for reserved group descriptors.

21 years agoFixed up some grammar problems with the ext2ed README, added some
Theodore Ts'o [Tue, 9 Jul 2002 05:33:51 +0000 (01:33 -0400)]
Fixed up some grammar problems with the ext2ed README, added some
clarifications.

21 years agodebugfs.c (do_rmdir), debugfs.8.in: Implement the rmdir command.
Theodore Ts'o [Tue, 9 Jul 2002 05:27:05 +0000 (01:27 -0400)]
debugfs.c (do_rmdir), debugfs.8.in: Implement the rmdir command.
Addresses Debian bug #138003.

21 years agoAdded amusing political correctness quote.
Theodore Ts'o [Sun, 7 Jul 2002 20:32:46 +0000 (16:32 -0400)]
Added amusing political correctness quote.

21 years agomke2fs.8.in: Cleaned up man page, and made it a bit more
Theodore Ts'o [Tue, 2 Jul 2002 14:08:27 +0000 (10:08 -0400)]
mke2fs.8.in: Cleaned up man page, and made it a bit more
OS-agnostic.  Addresses Debian bug #144621.  Hope this
makes the Hurd whiners happy.  :-)

21 years agochattr.1.in: Fix man page typo. (Addresses Debian bug #141938)
Theodore Ts'o [Fri, 28 Jun 2002 14:47:24 +0000 (10:47 -0400)]
chattr.1.in: Fix man page typo.  (Addresses Debian bug #141938)

21 years agobitops.h: Add #define's for ext2fs_{l,b}e{32,16}_to_cpu and
Theodore Ts'o [Fri, 28 Jun 2002 12:10:29 +0000 (08:10 -0400)]
bitops.h: Add #define's for ext2fs_{l,b}e{32,16}_to_cpu and
ext2fs_cpu_to_{l,b}e{32,16}

21 years agoismounted.c (check_mntent): In AIX 4.3, MOUNTED isn't defined.
Theodore Ts'o [Fri, 28 Jun 2002 01:19:45 +0000 (21:19 -0400)]
ismounted.c (check_mntent): In AIX 4.3, MOUNTED isn't defined.
Add appropriate fallbacks in this case.

21 years agoADD TAG: E2FSPROGS-1.28-WIP-0626 E2FSPROGS-1.28-WIP-0626
Theodore Ts'o [Wed, 26 Jun 2002 21:14:45 +0000 (17:14 -0400)]
ADD TAG: E2FSPROGS-1.28-WIP-0626

21 years agoBump versions for 1.28-WIP release.
Theodore Ts'o [Wed, 26 Jun 2002 21:14:45 +0000 (17:14 -0400)]
Bump versions for 1.28-WIP release.

21 years agoAdd support for the half-MD4 HTREE hash.
Theodore Ts'o [Wed, 26 Jun 2002 20:52:10 +0000 (16:52 -0400)]
Add support for the half-MD4 HTREE hash.

Add HTREE root node tests.

21 years agoAdd initial support for htree directories.
Theodore Ts'o [Wed, 26 Jun 2002 03:26:34 +0000 (23:26 -0400)]
Add initial support for htree directories.

21 years agoApplied Andrew Morton's patch to support the dirsync option.
Theodore Ts'o [Sat, 15 Jun 2002 22:58:39 +0000 (18:58 -0400)]
Applied Andrew Morton's patch to support the dirsync option.

21 years agoDo sanity checking of the number of blocks and inodes in a group for
Andreas Dilger [Mon, 10 Jun 2002 17:05:56 +0000 (11:05 -0600)]
Do sanity checking of the number of blocks and inodes in a group for
8192-byte and 16384-byte blocksize filesystems.

Change the default bytes-per-inode ratio of a new filesystem to be at most
one inode per block for large blocksizes.

21 years agoext2_fs.h: Further minor cleanups of the header. Consolidate
Andreas Dilger [Sun, 9 Jun 2002 23:38:50 +0000 (17:38 -0600)]
ext2_fs.h: Further minor cleanups of the header.  Consolidate
some checks for __KERNEL__ into one place.

21 years agofs_ext2.c (fs_init_task): Fix minor bugs pointed out by Steve
Theodore Ts'o [Sun, 2 Jun 2002 01:48:24 +0000 (21:48 -0400)]
fs_ext2.c (fs_init_task): Fix minor bugs pointed out by Steve
Pratt.  Fixed a selection bug and added checks to make
sure volumes are not mounted when creating the list of
volumes which can be mkfs'ed by the ext2/3 plugin.

21 years agoAdd changelog file for EVMS.
Theodore Ts'o [Thu, 30 May 2002 16:36:32 +0000 (12:36 -0400)]
Add changelog file for EVMS.

21 years agomain.c (main): If the filesystem has errors or is not valid,
Theodore Ts'o [Wed, 29 May 2002 03:19:14 +0000 (23:19 -0400)]
main.c (main): If the filesystem has errors or is not valid,
then require an e2fsck -f run to be done on the filesystem
more.

21 years agoAdd support for expanding and contracting filesystems. Fix a few minor bugs
Theodore Ts'o [Wed, 29 May 2002 03:16:10 +0000 (23:16 -0400)]
Add support for expanding and contracting filesystems.   Fix a few minor bugs
since the last commit.

22 years agoAdd EVMS FSIM plugin to e2fsprogs.
Theodore Ts'o [Sat, 25 May 2002 02:44:42 +0000 (22:44 -0400)]
Add EVMS FSIM plugin to e2fsprogs.

22 years agoext2_fs.h: Remove macros accessing u.ext2_sb field and use
Andreas Dilger [Thu, 23 May 2002 06:32:34 +0000 (00:32 -0600)]
ext2_fs.h: Remove macros accessing u.ext2_sb field and use
the EXT2_SB() macro instead.  Remove kernel function
prototypes also.  This matches the 2.5 kernel, and
is also cleaner for other reasons.  Whitespace cleanup.

22 years agoUpdate to support the V2 Bestbits EA format.
Theodore Ts'o [Wed, 22 May 2002 04:22:38 +0000 (00:22 -0400)]
Update to support the V2 Bestbits EA format.

22 years agoconfigure.in: On Linux systems, if the prefix is defaulted to
Theodore Ts'o [Wed, 22 May 2002 02:21:38 +0000 (22:21 -0400)]
configure.in: On Linux systems, if the prefix is defaulted to
/usr, then default mandir to /usr/share/man

22 years agoCheck for inodes which are too big (either too many blocks, or
Theodore Ts'o [Wed, 22 May 2002 01:19:14 +0000 (21:19 -0400)]
Check for inodes which are too big (either too many blocks, or
would cause i_size to be too big), and offer to truncate the inode.
Remove old bogus i_size checks.

Add test case which tests e2fsck's handling of large sparse files.
Older e2fsck with the old(er) bogus i_size checks didn't handle
this correctly.

22 years agoFix up Andreas' changeset. Avoid use of dynamic automatic arrays,
Theodore Ts'o [Tue, 21 May 2002 13:14:17 +0000 (09:14 -0400)]
Fix up Andreas' changeset.  Avoid use of dynamic automatic arrays,
and check for EXT2_INDEX_FL for special devices, and consider them to
be invalid if they are set.

22 years agoAdd more complete tests for symlinks: nul termination of long links and length
Andreas Dilger [Sat, 18 May 2002 19:16:30 +0000 (13:16 -0600)]
Add more complete tests for symlinks: nul termination of long links and length
Improve the f_badsymlinks test case for these new tests.

22 years agomisc/mke2fs.c: Minor fix for new page size checking code.
Andreas Dilger [Sat, 18 May 2002 19:27:33 +0000 (13:27 -0600)]
misc/mke2fs.c: Minor fix for new page size checking code.

22 years agoFix fencepost error in allocating space for array.
Theodore Ts'o [Sat, 18 May 2002 03:37:42 +0000 (23:37 -0400)]
Fix fencepost error in allocating space for array.

22 years agoFix up Andreas's 8k blocksize changes to fix a number of bugs,
Theodore Ts'o [Fri, 17 May 2002 14:53:07 +0000 (10:53 -0400)]
Fix up Andreas's 8k blocksize changes to fix a number of bugs,
and to make the page size determined at run-time instead of
compile time.

22 years agoAdd support for creating and checking 8192-byte blocksize filesystems.
Andreas Dilger [Thu, 16 May 2002 09:20:07 +0000 (03:20 -0600)]
Add support for creating and checking 8192-byte blocksize filesystems.
We complain if you try to create such a filesystem on a system with 4096
byte PAGE_SIZE.

Add checks for valid inode size for undocumented -I option.

22 years agoFix up ncurses interface so that it handles resizes correctly.
Theodore Ts'o [Mon, 13 May 2002 11:53:11 +0000 (07:53 -0400)]
Fix up ncurses interface so that it handles resizes correctly.

Removed the readline library (still available using if HAVE_READLINE is defined)
since it really doesn't play well with ncurses.  The only real feature it added
was command completion, and it didn't really handle it completely correctly anyway.
(If readline printed a completion list, it completely screwed up the screen.)

We now use the wgetch ncurses interface to get input; this allows the PGDN and PGUP
keys to work correctly, and also helped fix up the resizing logic.

22 years agoUpdate ext2ed with newer superblock descriptions, and add directory indexing
Theodore Ts'o [Sun, 12 May 2002 04:13:36 +0000 (00:13 -0400)]
Update ext2ed with newer superblock descriptions, and add directory indexing
structure.  Add support for displaying and setting character fields.

Add make depend logic and use e2fsprogs version strings.

22 years agoAdd a new command "bmap" to debugfs which calculates the logical->physical block
Theodore Ts'o [Sun, 12 May 2002 02:13:20 +0000 (22:13 -0400)]
Add a new command "bmap" to debugfs which calculates the logical->physical block
mapping for a particular inode.

Fixed a bug in the libext2 library which broke ext2fs_bmap if no inode structre
was passed inside for here.

Fixed bad calling parameters to parse_ulong which broken the -b  and -s
options to debugfs, as well as do_init, and the testb, setb, clearb functions.

22 years agoIntegrate ext2ed into the e2fsprogs build system, and make minimal changes so
Theodore Ts'o [Sat, 11 May 2002 23:17:00 +0000 (19:17 -0400)]
Integrate ext2ed into the e2fsprogs build system, and make minimal changes so
that it will compile on modern systems.  The top-level makefile does not recurse
into the ext2ed directory for now, pending determination of whether the original
author is still maintaining ext2ed.

The documentation files have been renamed to remove the version from the filename.
In addition, the SGML files have been converted from LinuxDoc to DocBook.

The way root_bindir, root_sbindir, and root_libdir have been changed so that
if root_prefix is not set, the values set by the configure command-line options to
set the directory names using --bindir, --sbindir, --libdir will affect the
root_bindir, et.al Makefile variables.

22 years agoChecked in changes from ext2ed version 0.2.
Theodore Ts'o [Sat, 11 May 2002 17:03:25 +0000 (13:03 -0400)]
Checked in changes from ext2ed version 0.2.

22 years agoCheck in ext2ed version 0.1
Theodore Ts'o [Sat, 11 May 2002 17:00:22 +0000 (13:00 -0400)]
Check in ext2ed version 0.1

22 years agoFix typo in man page.
Theodore Ts'o [Wed, 1 May 2002 00:22:32 +0000 (20:22 -0400)]
Fix typo in man page.

22 years agoismounted.c (check_mntent_file, is_swap_device): Verify that the
Theodore Ts'o [Sat, 27 Apr 2002 21:07:52 +0000 (17:07 -0400)]
ismounted.c (check_mntent_file, is_swap_device): Verify that the
file we are checking is a block device file before looking
at st_rdev, since it's not valid for normal files.
(is_swap_device): Move so that it is outside the
HAVE_MNTENT_H, so that it is always built.

22 years agomain.c (main): If resize_fs returns an error, don't print the
Theodore Ts'o [Tue, 9 Apr 2002 16:46:19 +0000 (12:46 -0400)]
main.c (main): If resize_fs returns an error, don't print the
message stating that the filesystem was resized after
printing the error.

22 years agoutil.c (parse_ulong): Fix typo which cases parse_ulong to
Theodore Ts'o [Mon, 1 Apr 2002 20:42:21 +0000 (15:42 -0500)]
util.c (parse_ulong): Fix typo which cases parse_ulong to
coredump if the err variable is filled in (for example, if
the -b or -s options are passed to the debugfs's
command-line invocation).

22 years agomain.c (main): If we are resizing a plain file which is smaller
Theodore Ts'o [Mon, 1 Apr 2002 06:28:30 +0000 (01:28 -0500)]
main.c (main): If we are resizing a plain file which is smaller
than the requested size, then we will attempt to
transparently extend the filesize in a sparse fashion by
writing a block at the end of the requested part of the
filesystem.

main.c (main), resize2fs.c (resize_fs), resize2fs.h: Change the
function prototype of resize_fs() so that it can modify
the new_size parameter with the actual new size of the
filesystem after the resize operation.  (This can
sometimes be less than the requested new size if there
isn't enough space to create the necessary block group
metadata for that last bit of disk space.)  Resize2fs now
prints the actual new size of the filesystem when it finishes.

22 years agoFix stupid bug; dx_hack_hash was left-shifted by one in CPP macro
Theodore Ts'o [Tue, 12 Mar 2002 18:41:31 +0000 (13:41 -0500)]
Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro
trap.