OSDN Git Service

android-x86/external-e2fsprogs.git
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.

22 years agodirblock.c (ext2fs_read_dir_block2, ext2fs_write_dir_block): New
Theodore Ts'o [Tue, 12 Mar 2002 06:05:06 +0000 (01:05 -0500)]
dirblock.c (ext2fs_read_dir_block2, ext2fs_write_dir_block): New
functions which take an extra flags argument.  The flag
EXT2_DIRBLOCK_V2_STRUCT will reverse when the name_len
field is byte swampped on big-endian machines, since in
the V2 structure, name_len is a char field which is
doesn't need to be byte swapped --- except if an
old-style kernel had byte-swapped the name_len field
as part of the V1 structure.

Also fixed a bug in debugfs which used ext2_dir_entry_2 without
worrying about the above issue, with the net result that "ls -l"
would print an incorrect file type on big-endian systems.

22 years agoAdd new function to the libext2fs library, ext2fs_dirhash, which
Theodore Ts'o [Mon, 11 Mar 2002 20:04:45 +0000 (15:04 -0500)]
Add new function to the libext2fs library, ext2fs_dirhash, which
calculates the hash of a filename for indexed directories.

22 years agoADD TAG: E2FSPROGS-1_27
Theodore Ts'o [Fri, 8 Mar 2002 08:27:51 +0000 (03:27 -0500)]
ADD TAG: E2FSPROGS-1_27

22 years agoUpdate lsm file and version file for 1.27 release.
Theodore Ts'o [Fri, 8 Mar 2002 08:27:51 +0000 (03:27 -0500)]
Update lsm file and version file for 1.27 release.

22 years agoADD TAG: E2FSPROGS-1_27
Theodore Ts'o [Fri, 8 Mar 2002 08:12:14 +0000 (03:12 -0500)]
ADD TAG: E2FSPROGS-1_27

22 years agoUpdate for 1.27 release.
Theodore Ts'o [Fri, 8 Mar 2002 08:12:14 +0000 (03:12 -0500)]
Update for 1.27 release.

22 years agomke2fs.c: Check for the BSD disklabel on all architectures, and
Theodore Ts'o [Fri, 8 Mar 2002 08:01:53 +0000 (03:01 -0500)]
mke2fs.c: Check for the BSD disklabel on all architectures, and
also check the byte-swapped magic number as well.

22 years agomke2fs.c: Output warnings to stderr
Theodore Ts'o [Fri, 8 Mar 2002 05:14:46 +0000 (00:14 -0500)]
mke2fs.c: Output warnings to stderr
(From Philipp Thomas <pthomas@suse.de>)

22 years agoFix various gcc -Wall complaints.
Theodore Ts'o [Fri, 8 Mar 2002 04:52:56 +0000 (23:52 -0500)]
Fix various gcc -Wall complaints.

22 years agoMakefile.in (check): Use LD_LIBRARY_PATH to run test programs.
Theodore Ts'o [Fri, 8 Mar 2002 01:55:01 +0000 (20:55 -0500)]
Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
(From Philipp Thomas <pthomas@suse.de>)

22 years agomke2fs.c (zap_sector): Don't erase BSD disklabels on Alpha.
Theodore Ts'o [Fri, 8 Mar 2002 01:52:12 +0000 (20:52 -0500)]
mke2fs.c (zap_sector): Don't erase BSD disklabels on Alpha.
(From Thorsten Kukuk <kukuk@suse.de>)

22 years agoFixed the journal handling so that an offer is made to clear the
Theodore Ts'o [Thu, 7 Mar 2002 08:13:07 +0000 (03:13 -0500)]
Fixed the journal handling so that an offer is made to clear the
journal filesystem in all cases.

Fixed a bug in e2fsck which caused it to give spurious I/O manager
bad messages right before crashes.

22 years agols.c (list_dir_proc): Fix typo in debugfs which was causing a
Theodore Ts'o [Thu, 7 Mar 2002 07:56:53 +0000 (02:56 -0500)]
ls.c (list_dir_proc): Fix typo in debugfs which was causing a
compiler warning.

22 years agoE2fsck now prints ranges in pass 5 when printing deltas in
Theodore Ts'o [Thu, 7 Mar 2002 07:47:07 +0000 (02:47 -0500)]
E2fsck now prints ranges in pass 5 when printing deltas in
the block and inode bitmaps.

22 years agoADD TAG: E2FSPROGS-1.27-WIP-0305
Theodore Ts'o [Tue, 5 Mar 2002 08:37:06 +0000 (03:37 -0500)]
ADD TAG: E2FSPROGS-1.27-WIP-0305

22 years agoUpdate release notes with some last minute fixes.
Theodore Ts'o [Tue, 5 Mar 2002 08:37:06 +0000 (03:37 -0500)]
Update release notes with some last minute fixes.

22 years agoUpdate for 1.27-WIP release.
Theodore Ts'o [Tue, 5 Mar 2002 08:31:06 +0000 (03:31 -0500)]
Update for 1.27-WIP release.

22 years agoNewer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.
Theodore Ts'o [Tue, 5 Mar 2002 08:26:52 +0000 (03:26 -0500)]
Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.

22 years agoTwo bug fixes to debugfs, courtesy of Jaroslav Drzik <jdrzik@host.sk> for suggesting...
Theodore Ts'o [Tue, 5 Mar 2002 06:57:53 +0000 (01:57 -0500)]
Two bug fixes to debugfs, courtesy of Jaroslav Drzik <jdrzik@host.sk> for suggesting this enh ancement.

1) The modify_inode command was core dumping if no filesystem was open.

2) The lsdel command command now uses the pager.

Also updated the Makefile.in file with "make depend".

22 years agoIn debugfs, make "ls -l" print out the file type information in the
Theodore Ts'o [Tue, 26 Feb 2002 22:13:12 +0000 (17:13 -0500)]
In debugfs, make "ls -l" print out the file type information in the
directory entry.

22 years agoUpdate Changelog messages to use tytso@mit.edu for all addresses
Theodore Ts'o [Tue, 26 Feb 2002 19:59:39 +0000 (14:59 -0500)]
Update Changelog messages to use tytso@mit.edu for all addresses
after September 7, 2001.  (Forgot to update my emacs file to get
rid of the tytso@valinux.com address.  Oops.)

22 years agoAdd check for mkfs.ext3 and create a journal in this case.
Andreas Dilger [Tue, 26 Feb 2002 06:11:26 +0000 (23:11 -0700)]
Add check for mkfs.ext3 and create a journal in this case.

22 years agoAdd initial support in debugfs for examining directory indexing
Theodore Ts'o [Mon, 25 Feb 2002 09:28:45 +0000 (04:28 -0500)]
Add initial support in debugfs for examining directory indexing
information.

22 years agoFix typo in previous changeset; the man pages for fsck.ext2 and
Theodore Ts'o [Sun, 24 Feb 2002 08:48:45 +0000 (03:48 -0500)]
Fix typo in previous changeset; the man pages for fsck.ext2 and
fsck.ext3 should be linked to the one for e2fsck, not fsck.

22 years agoUpdate makefiles to install mkfs.ext3, and to install man pages for
Theodore Ts'o [Sun, 24 Feb 2002 08:08:57 +0000 (03:08 -0500)]
Update makefiles to install mkfs.ext3, and to install man pages for
mkfs.ext2/3 and fsck.ext2/3.  Also remove any compressed man pages
before installing the man pages.

22 years agoUpdate with the Debian package e2fsprogs-1.26-1.
Theodore Ts'o [Sun, 24 Feb 2002 02:23:26 +0000 (21:23 -0500)]
Update with the Debian package e2fsprogs-1.26-1.

Clarify and clean up the badblocks man page and the com_err info file.

22 years agounix_io.c (unix_open): Fix 2.4 resource limit workaround so that
Theodore Ts'o [Sat, 23 Feb 2002 23:50:32 +0000 (18:50 -0500)]
unix_io.c (unix_open): Fix 2.4 resource limit workaround so that
it doesn't break things on mis32, sparc32, and alpha
platforms.

22 years agoCleaned up journal handling code in e2fsck.
Theodore Ts'o [Fri, 22 Feb 2002 05:17:59 +0000 (00:17 -0500)]
Cleaned up journal handling code in e2fsck.

Fixed up two minor memory leaks.

22 years agoismounted.c (is_swap_device): Fix file descriptor/memory leak;
Theodore Ts'o [Fri, 22 Feb 2002 01:48:25 +0000 (20:48 -0500)]
ismounted.c (is_swap_device): Fix file descriptor/memory leak;
we were missing an fclose().

22 years agoAdd new inode I/O abstraction interface which exports an inode as
Theodore Ts'o [Wed, 20 Feb 2002 06:06:25 +0000 (01:06 -0500)]
Add new inode I/O abstraction interface which exports an inode as
an I/O object.

Export ext2_file_flush as a public interface.

Also minor cleanups to tighten code in other I/O abstractions, and to
mark a void * pointer as const in the ext2_file_write interface.

22 years agoLots of small random portability fixes to make e2fsprogs build
Theodore Ts'o [Tue, 12 Feb 2002 07:34:44 +0000 (02:34 -0500)]
Lots of small random portability fixes to make e2fsprogs build
under AIX --- even without the 5L compatibility toolkit, and even
using the uber-crippled AIX native C compiler.

22 years agoADD TAG: E2FSPROGS-1_26
tiniou@crusoe.alcove-fr [Wed, 6 Feb 2002 14:59:55 +0000 (15:59 +0100)]
ADD TAG: E2FSPROGS-1_26

22 years agoCorrected version number in e2fsprogs.spec, making able to rpm -ta again.
tiniou@crusoe.alcove-fr [Wed, 6 Feb 2002 14:59:55 +0000 (15:59 +0100)]
Corrected version number in e2fsprogs.spec, making able to rpm -ta again.

22 years agoADD TAG: E2FSPROGS-1_26
Theodore Ts'o [Sun, 3 Feb 2002 06:36:54 +0000 (01:36 -0500)]
ADD TAG: E2FSPROGS-1_26

22 years agoFix really stupid date typo for 1.26 release-notes.
Theodore Ts'o [Sun, 3 Feb 2002 06:36:54 +0000 (01:36 -0500)]
Fix really stupid date typo for 1.26 release-notes.

22 years agoADD TAG: E2FSPROGS-1_26
Theodore Ts'o [Sun, 3 Feb 2002 06:32:57 +0000 (01:32 -0500)]
ADD TAG: E2FSPROGS-1_26

22 years agoFinal adjustment of LSM file before 1.26 release.
Theodore Ts'o [Sun, 3 Feb 2002 06:32:57 +0000 (01:32 -0500)]
Final adjustment of LSM file before 1.26 release.

22 years agoFix bug where ext2fs_mkdir wasn't correctly bumping the number of
Theodore Ts'o [Sun, 3 Feb 2002 06:28:52 +0000 (01:28 -0500)]
Fix bug where ext2fs_mkdir wasn't correctly bumping the number of
directories in use in a bloock group.

22 years agof_swapfs: Fix expect script to deal with extra spaces now printed
Theodore Ts'o [Sun, 3 Feb 2002 06:24:37 +0000 (01:24 -0500)]
f_swapfs: Fix expect script to deal with extra spaces now printed
by debugfs's ls command.

22 years agoUpdate files for 1.26 release.
Theodore Ts'o [Sun, 3 Feb 2002 06:00:22 +0000 (01:00 -0500)]
Update files for 1.26 release.

22 years agoChanged fsck to support filesystems types in /etc/fstab of the form
Theodore Ts'o [Sun, 3 Feb 2002 05:08:52 +0000 (00:08 -0500)]
Changed fsck to support filesystems types in /etc/fstab of the form
"ext3,ext2", etc.

Added support for only searching for a specified list of filesystems.
Also add support for identifying reiserfs filesystems.

22 years agofsck.c: Allow the number of outstanding processes fs-specific
Theodore Ts'o [Tue, 29 Jan 2002 17:49:14 +0000 (12:49 -0500)]
fsck.c: Allow the number of outstanding processes fs-specific
fsck programs to be capped via the FSCK_MAX_INST
envrionment variable.

fsck.8.in: Document all of the environment variables used by fsck.

22 years agoDocument the -f flag to tune2fs.
Theodore Ts'o [Sun, 27 Jan 2002 23:23:49 +0000 (18:23 -0500)]
Document the -f flag to tune2fs.

22 years agoFix build-rpm script to work a bit more safely.
Stephen Tweedie [Thu, 10 Jan 2002 17:56:07 +0000 (17:56 +0000)]
Fix build-rpm script to work a bit more safely.

22 years agoAdd new Makefile target "make testnew" which will allow easy testcase
Andreas Dilger [Mon, 7 Jan 2002 04:58:52 +0000 (21:58 -0700)]
Add new Makefile target "make testnew" which will allow easy testcase
creation for e2fsck.

22 years agoAlways free vdirname.
Andreas Dilger [Mon, 7 Jan 2002 04:52:44 +0000 (21:52 -0700)]
Always free vdirname.

22 years agoReturn a non-zero exit code on error.
Andreas Dilger [Wed, 26 Dec 2001 06:10:40 +0000 (23:10 -0700)]
Return a non-zero exit code on error.

22 years agoFix gcc -Wall nits.
Theodore Ts'o [Thu, 3 Jan 2002 10:10:04 +0000 (05:10 -0500)]
Fix gcc -Wall nits.

22 years agoAdd new debugfs commands and arguments which make it easier to
Theodore Ts'o [Thu, 3 Jan 2002 09:55:25 +0000 (04:55 -0500)]
Add new debugfs commands and arguments which make it easier to
recover deleted files.  The lsdel command now takes an optional
argument which allows the user to only see the most recently
deleted files.  Also added a new command, undel, which automates
undeleting a deleted inode and linking it back to a directory.
Also added an optional count argument to the testb, freeb, setb,
and find_free_block commands.  The ls command now takes a new
option, -d, which lists deleted directory entries.

Factored out out commonly used code into utility subroutines
for ease of maintenance and to make the executable size smaller.

22 years agodir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block):
Theodore Ts'o [Thu, 3 Jan 2002 08:29:19 +0000 (03:29 -0500)]
dir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block):
Add support for a new flag, DIRENT_FLAG_INCLUDE_REMOVED,
which will return deleted directory entries.
ext2fs_dir_iterate2 takes a new callback function which
is identical with the one used by
ext2fs_dblist_dir_iterate().  If the directory entry is
deleted, the callback function will be called with the
entry paraemter set to DIRENT_DELETED_FILE.

Makefile.in, alloc_stats.c (ext2fs_inode_alloc_stats,
ext2fs_block_alloc_stats): New functions which update
block/inode allocation statistics in the bitmaps, block
group descriptors, and superblock.

mkjournal.c (mkjournal_proc), mkdir.c (ext2fs_mkdir),
expanddir.c (expand_dir_proc), bb_inode.c
(clear_bad_block_proc, set_bad_block_proc,
ext2fs_update_bb_inode), alloc.c (ext2fs_alloc_block):
Update to use new block/inode allocation statistics.

22 years agobadblocks.c (main): Open the device as O_RDWR if possible, since
Theodore Ts'o [Wed, 2 Jan 2002 19:15:35 +0000 (14:15 -0500)]
badblocks.c (main): Open the device as O_RDWR if possible, since
fsync() isn't guaranteed to work if the filesystem is
opened read-only.

22 years agotune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): Add
Theodore Ts'o [Wed, 26 Dec 2001 13:58:01 +0000 (08:58 -0500)]
tune2fs.8.in, tune2fs.c (parse_tune2fs_options, main): Add
support for new option, -T, which allows the user to set
the last checked time on the filesystem.

22 years agoADD TAG: 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
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.