Whamcloud - gitweb
tools/e2fsprogs.git
21 years agofs_ext2.c (fs_expand): Synchronize with EVMS CVS rev 1.12
Theodore Ts'o [Fri, 8 Nov 2002 16:57:14 +0000 (11:57 -0500)]
fs_ext2.c (fs_expand): Synchronize with EVMS CVS rev 1.12
(2002/08/28): Use the EVMS_IS_MOUNTED macro.

21 years agofs_ext2.c (fs_expand, fs_shrink): Synchronize with EVMS CVS rev
Theodore Ts'o [Fri, 8 Nov 2002 16:54:29 +0000 (11:54 -0500)]
fs_ext2.c (fs_expand, fs_shrink): Synchronize with EVMS CVS rev
1.11 (2002/8/27).  Read from the resize2fs output in
non-blocking mode, so the GUI continues to updates the window.

21 years agofsimext2.h: Synchronize with EVMS CVS rev 1.8 (2002/8/29).
Theodore Ts'o [Fri, 8 Nov 2002 16:46:22 +0000 (11:46 -0500)]
fsimext2.h: Synchronize with EVMS CVS rev 1.8 (2002/8/29).
Change all __uXX's to u_intXX_t's.

21 years agoChange e2fsck to force out changes to the backup copies of the
Theodore Ts'o [Fri, 8 Nov 2002 16:10:28 +0000 (11:10 -0500)]
Change e2fsck to force out changes to the backup copies of the
superblock and block group descriptors when important changes
are made to those data structures.

21 years agoclosefs.c (write_bgdesc, ext2fs_flush): Fix bug in meta_bg
Theodore Ts'o [Fri, 8 Nov 2002 14:21:46 +0000 (09:21 -0500)]
closefs.c (write_bgdesc, ext2fs_flush): Fix bug in meta_bg
support when the MASTER_SB_ONLY flag is set.  Some of
the descriptor blocks that should have been written out
were getting skipped.

21 years agoe2fsck.h, unix.c (main, check_mount): Fix e2fsck so that it
Theodore Ts'o [Thu, 7 Nov 2002 21:16:55 +0000 (16:16 -0500)]
e2fsck.h, unix.c (main, check_mount): Fix e2fsck so that it
returns the appropriate exit code, so that the boot
scripts will be told that they need to automatically
reboot.

21 years agoADD TAG: E2FSPROGS-1_30 E2FSPROGS-1_30
Theodore Ts'o [Fri, 1 Nov 2002 07:13:53 +0000 (02:13 -0500)]
ADD TAG: E2FSPROGS-1_30

21 years agoUpdate files for 1.30 release.
Theodore Ts'o [Fri, 1 Nov 2002 07:13:53 +0000 (02:13 -0500)]
Update files for 1.30 release.

21 years agoext2_fs.h: Add support for a new inode flag, which is to be used
Theodore Ts'o [Fri, 1 Nov 2002 07:01:41 +0000 (02:01 -0500)]
ext2_fs.h: Add support for a new inode flag, which is to be used
for indicating the top of directory hierarchies for the
Orlov block allocator.

21 years agoAdd support for a new inode flag, which is to be used
Theodore Ts'o [Fri, 1 Nov 2002 06:53:52 +0000 (01:53 -0500)]
Add support for a new inode flag, which is to be used
for indicating the top of directory hierarchies for the
Orlov block allocator.

21 years agoresize2fs.c (inode_scan_and_fix, check_and_change_inodes): When
Theodore Ts'o [Fri, 1 Nov 2002 00:56:56 +0000 (19:56 -0500)]
resize2fs.c (inode_scan_and_fix, check_and_change_inodes): When
moving an inode, set the ctime field so that people using
dump/restore will backup the changed inode.  Also update
the mtime and ctime of directories which get updated when
we need to move an inode.

21 years agounix.c (usage), e2fsck.8.in: Add the -D option to the usage and
Theodore Ts'o [Fri, 1 Nov 2002 00:39:03 +0000 (19:39 -0500)]
unix.c (usage), e2fsck.8.in: Add the -D option to the usage and
command synopsis.  (Addresses Debian bug #167108)
(missed this file in the previous checkin)

21 years agounix.c (usage), e2fsck.8.in: Add the -D option to the usage and
Theodore Ts'o [Fri, 1 Nov 2002 00:30:24 +0000 (19:30 -0500)]
unix.c (usage), e2fsck.8.in: Add the -D option to the usage and
command synopsis.  (Addresses Debian bug #167108)

21 years agopass1.c (e2fsck_pass1): Check the superblock write time to see
Theodore Ts'o [Thu, 31 Oct 2002 23:38:55 +0000 (18:38 -0500)]
pass1.c (e2fsck_pass1): Check the superblock write time to see
whether or not we can safely do the LOW_DTIME checks.
(Addresses Sourceforge bug #620980)

21 years agoget_device_by_label.c (read_partitions): Pay attention to
Theodore Ts'o [Thu, 31 Oct 2002 20:30:26 +0000 (15:30 -0500)]
get_device_by_label.c (read_partitions): Pay attention to
partitions returned in /proc/partitions that begin with
with the string "lvm".

21 years agogen_uuid.c (get_random_bytes): Don't spin forever if read()
Theodore Ts'o [Thu, 31 Oct 2002 20:17:16 +0000 (15:17 -0500)]
gen_uuid.c (get_random_bytes): Don't spin forever if read()
returns EINTR or EAGAIN, so that when /dev/random is
opened O_NONBLOCK, we don't end up spinning forever.

21 years agoismounted.c (check_mntent, check_mntent_file): Add better
Theodore Ts'o [Thu, 31 Oct 2002 18:23:37 +0000 (13:23 -0500)]
ismounted.c (check_mntent, check_mntent_file): Add better
support for loopback-mounted filesystems.  Check /etc/mtab
if /proc/mounts doesn't turn up any mount flags, since
/etc/mtab has the loopback image filename, instead of
/dev/loop0.  Also, check based on st_dev and st_ino, so
that if a relative pathname or a pathnames using symbolic
links are used, we can detect the the filesystem correctly
in those cases.  (Addresses Sourceforge bug #619119)

21 years agoflushb.c (ext2fs_sync_device): If the BLKFLSBUF ioctl succeeds,
Theodore Ts'o [Thu, 31 Oct 2002 17:21:05 +0000 (12:21 -0500)]
flushb.c (ext2fs_sync_device): If the BLKFLSBUF ioctl succeeds,
don't try the FDFLUSH ioctl that was required for floppies
with older kernels.  This avoids needless whining from the
MD device driver.  (Addresses Sourceforge bug #545832).

21 years agodebugfs.c (do_write): Check to see if the filename exists before
Theodore Ts'o [Thu, 31 Oct 2002 16:53:49 +0000 (11:53 -0500)]
debugfs.c (do_write): Check to see if the filename exists before
creating it, and give an error if so.  Addresses
Sourceforge bug #478195.

21 years agoopenfs.c (ext2fs_open): Fix bug which caused us to pass the
Theodore Ts'o [Thu, 31 Oct 2002 16:45:06 +0000 (11:45 -0500)]
openfs.c (ext2fs_open): Fix bug which caused us to pass the
wrong group_block to ext2fs_descriptor_block_loc if we're
using the backup superblock/block group descriptors.
(ext2fs_descriptor_block_loc): If we're using the backup
superblock descriptors, use the backup descriptor block in
the next block group.

21 years agoRemove uneeded debian files.
Theodore Ts'o [Thu, 31 Oct 2002 16:30:02 +0000 (11:30 -0500)]
Remove uneeded debian files.

21 years agoUpdate Debian packaging information as of 1.29+130-WIP-0930-2.
Theodore Ts'o [Thu, 31 Oct 2002 08:44:35 +0000 (03:44 -0500)]
Update Debian packaging information as of 1.29+130-WIP-0930-2.

21 years agoMakefile.in (install): Search all compression extensions when
Theodore Ts'o [Thu, 31 Oct 2002 08:32:34 +0000 (03:32 -0500)]
Makefile.in (install): Search all compression extensions when
deleting old man pages.

21 years agoAdd Olaf Klemke's german translation.
Theodore Ts'o [Thu, 31 Oct 2002 04:26:03 +0000 (23:26 -0500)]
Add Olaf Klemke's german translation.

21 years agoAdd support for the meta_bg feature flag to the resize2fs program.
Theodore Ts'o [Thu, 31 Oct 2002 04:07:21 +0000 (23:07 -0500)]
Add support for the meta_bg feature flag to the resize2fs program.

Fix bug in meta_bg support in mke2fs, e2fsck, and dumpe2fs; we were
incorrectly reserving the legacy block groups desriptor blocks.

21 years agofsck.c (main): Fix bug reported by Gregory Mutt. Multiple
Theodore Ts'o [Mon, 28 Oct 2002 21:52:12 +0000 (16:52 -0500)]
fsck.c (main): Fix bug reported by Gregory Mutt.  Multiple
filesystems explicitly specified on the command line were
not being checked in parallel, due to a logic bug
introduced in to support the FSCK_MAX_INST environment
variable.

21 years agoAdd a new superblock field, s_mkfs_time, which indicates when
Theodore Ts'o [Fri, 25 Oct 2002 21:29:55 +0000 (17:29 -0400)]
Add a new superblock field, s_mkfs_time, which indicates when
the filesystem was created.  It is set via mke2fs, and printed
via list_super2() (which is called by dumpe2fs).

Also, list_super2() will now print "n/a" if the last mount time
(s_mtime) is zero.

21 years agodumpe2fs.c (list_desc, main): Make dumpe2fs more robust so that
Theodore Ts'o [Fri, 25 Oct 2002 21:07:11 +0000 (17:07 -0400)]
dumpe2fs.c (list_desc, main): Make dumpe2fs more robust so that
if there is an error reading the block/inode bitmaps, it
will still print out the contents of the block group
descriptors.

21 years agoUpdate man page to document the journal_* default mount options.
Theodore Ts'o [Fri, 25 Oct 2002 20:21:03 +0000 (16:21 -0400)]
Update man page to document the journal_* default mount options.

21 years agoAdd support for new default mount options for the journal data mode.
Theodore Ts'o [Sun, 20 Oct 2002 05:52:52 +0000 (01:52 -0400)]
Add support for new default mount options for the journal data mode.

21 years agoAdd support for the meta_blockgroup filesystem format. (Missing changelog)
Theodore Ts'o [Sun, 20 Oct 2002 04:58:08 +0000 (00:58 -0400)]
Add support for the meta_blockgroup filesystem format.  (Missing changelog)

21 years agoAdd support for the meta_blockgroup filesystem format.
Theodore Ts'o [Sun, 20 Oct 2002 04:38:57 +0000 (00:38 -0400)]
Add support for the meta_blockgroup filesystem format.

21 years agoAdd support for new feature in ext2/3 filesystems; a default mount options field
Theodore Ts'o [Tue, 15 Oct 2002 21:43:43 +0000 (17:43 -0400)]
Add support for new feature in ext2/3 filesystems; a default mount options field
in the superblock.  Added the tune2fs '-o' option to set this field.

21 years agoFix gcc -Wall nits.
Theodore Ts'o [Mon, 14 Oct 2002 03:56:28 +0000 (23:56 -0400)]
Fix gcc -Wall nits.

Fix format bug if NLS is in use.

Add extra so that the info directory looks OK on OpenWall.

21 years agoFix bug in e2fsck and mklost+found; the lost+found directory should
Theodore Ts'o [Fri, 11 Oct 2002 21:44:12 +0000 (17:44 -0400)]
Fix bug in e2fsck and mklost+found; the lost+found directory should
created with mode 0700.

21 years agoresize2fs.8.in: Fix typo in man page.
Theodore Ts'o [Thu, 3 Oct 2002 15:52:41 +0000 (11:52 -0400)]
resize2fs.8.in: Fix typo in man page.

21 years agoHandle BAD_BLOCK_IN_INODE_TABLE even at the beginning of the
Theodore Ts'o [Thu, 3 Oct 2002 05:09:35 +0000 (01:09 -0400)]
Handle BAD_BLOCK_IN_INODE_TABLE even at the beginning of the
inode table, and shrink code by reorganizing the while loop so
to eliminate duplicate calls to ext2fs_get_next_inode().

21 years agoFix endian problems in the htree code for e2fsck and debugfs.
Theodore Ts'o [Thu, 3 Oct 2002 02:07:17 +0000 (22:07 -0400)]
Fix endian problems in the htree code for e2fsck and debugfs.

When byte-swapping a filesystem on a PPC architecture, byte-swap
the bitmaps since the historical big-endian ext2 variant had
byte-swapped bitmaps, and the ext2fs library assumes this.  Otherwise
the regression test suite will fail...

21 years agoe2image.c (write_raw_image_file): Handle a bad block in the
Theodore Ts'o [Wed, 2 Oct 2002 21:47:08 +0000 (17:47 -0400)]
e2image.c (write_raw_image_file): Handle a bad block in the
inode table correctly.

21 years agoADD TAG: E2FSPROGS-1.30-WIP-0930 E2FSPROGS-1.30-WIP-0930
Theodore Ts'o [Mon, 30 Sep 2002 15:33:36 +0000 (11:33 -0400)]
ADD TAG: E2FSPROGS-1.30-WIP-0930

21 years agoUpdate release notes, et. al. for 1.30-WIP release.
Theodore Ts'o [Mon, 30 Sep 2002 15:33:36 +0000 (11:33 -0400)]
Update release notes, et. al. for 1.30-WIP release.

21 years agoAvoid counting directory entries during a directory salvage.
Theodore Ts'o [Mon, 30 Sep 2002 15:19:19 +0000 (11:19 -0400)]
Avoid counting directory entries during a directory salvage.

Add additional checks to HTREE directories.  We now check the count
and limit fields in the htree header, as well as assuring that the
hash table in each interior node is in ascending order.  We also
check to make sure all leaf nodes are have the expected depth in
the tree.

Updated test cases to deal with all of the above.

21 years agoIn ext2ed, if there is a directory entry of length 0,
Theodore Ts'o [Mon, 30 Sep 2002 04:12:10 +0000 (00:12 -0400)]
In ext2ed, if there is a directory entry of length 0,
go to the next block, so we don't end up looping forever.

21 years agoget_device_by_label.c: Applied sourceforge patch #613447, which
Theodore Ts'o [Mon, 30 Sep 2002 02:42:27 +0000 (22:42 -0400)]
get_device_by_label.c: Applied sourceforge patch #613447, which
adds support for reiserfs volumes for LABEL= and UUID=
fstab entries.

21 years agobadblocks.c (main): Appled sourceforge patch #600451, which
Theodore Ts'o [Mon, 30 Sep 2002 02:37:40 +0000 (22:37 -0400)]
badblocks.c (main): Appled sourceforge patch #600451, which
addresses sourceforge bug #600388, by AEF.  This allows
badblocks to work correctly on read-only devices such as
CD-ROM's, DVD's, etc.

21 years agopass2.c (check_dir_block): Do a more paranoid check when trying
Theodore Ts'o [Sun, 29 Sep 2002 23:30:28 +0000 (19:30 -0400)]
pass2.c (check_dir_block): Do a more paranoid check when trying
to determine whether or not a directory entry is a
completely empty leaf block or leaf node.  Otherwise
e2fsck might get confused into thinking that a valid dxdir
was corrupted.

21 years agomke2fs.8.in, tune2fs.8.in: Clarify manual pages about using the
Theodore Ts'o [Sun, 29 Sep 2002 23:08:38 +0000 (19:08 -0400)]
mke2fs.8.in, tune2fs.8.in: Clarify manual pages about using the
caret ('^') character to negate feature sets when using
the -O option.  Define the has_journal feature to avoid
confusion about what ^has_journal means.

21 years agorehash.c (e2fsck_rehash_dir): Apply patch from Christopher Li
Theodore Ts'o [Sun, 29 Sep 2002 23:05:26 +0000 (19:05 -0400)]
rehash.c (e2fsck_rehash_dir): Apply patch from Christopher Li
which avoids creating an empty directory entry at the end
of the directory block.  This screws up earlier versions
of the indexed directory patch.

21 years agoAdd a more sophisticated algorithm to e2fsck to salvage corrupted
Theodore Ts'o [Sat, 28 Sep 2002 13:16:28 +0000 (09:16 -0400)]
Add a more sophisticated algorithm to e2fsck to salvage corrupted
directories.

Speed up e2fsck slightly by only updating the master superblock;
there is no point to update the backup superblocks.

Fix a small bug in the rehashing code which could leave the indexed
flag set even after the directory was compressed instead of indexed.
(Not fatal, since the kernel will deal with this, but technically
it filesystem isn't consistent, and the filesystem will be marked
as being in error when the kernel comes across the directory.  It
should also never happen in real life, since directories that small
will never be indexed, but better safe than sorry.)

Also change the threshold of when directories are indexed, so that
directories of size 2 blocks will be indexed.  Otherwise they will
never be indexed by the kernel when they grow.

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.