Commit Graph

1012 Commits (b5ffeadece25f7dca04847dfc013e979fe36e3a6)

Author SHA1 Message Date
Theodore Ts'o b5ffeadece 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.
2002-05-11 19:17:00 -04:00
Theodore Ts'o 0f31c737db Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
Theodore Ts'o 583a1ce5d1 Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
Theodore Ts'o 7de6577cd9 Fix typo in man page. 2002-04-30 20:22:32 -04:00
Theodore Ts'o f0efd2976b 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.
2002-04-27 17:07:52 -04:00
Theodore Ts'o 1608211222 main.c (main): If resize_fs returns an error, don't print the
message stating that the filesystem was resized after
	printing the error.
2002-04-09 12:46:19 -04:00
Theodore Ts'o e5b3b27966 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).
2002-04-01 15:42:21 -05:00
Theodore Ts'o 116db1b513 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.
2002-04-01 01:28:30 -05:00
Theodore Ts'o 1acb01b4e2 Fix stupid bug; dx_hack_hash was left-shifted by one in CPP macro
trap.
2002-03-12 13:41:31 -05:00
Theodore Ts'o f9190c8a95 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.
2002-03-12 01:05:06 -05:00
Theodore Ts'o 52783e0ca7 Add new function to the libext2fs library, ext2fs_dirhash, which
calculates the hash of a filename for indexed directories.
2002-03-11 15:04:45 -05:00
Theodore Ts'o 708d3970e8 ADD TAG: E2FSPROGS-1_27 2002-03-08 03:27:51 -05:00
Theodore Ts'o df408e121f Update lsm file and version file for 1.27 release. 2002-03-08 03:27:51 -05:00
Theodore Ts'o aae5110f2c ADD TAG: E2FSPROGS-1_27 2002-03-08 03:12:14 -05:00
Theodore Ts'o a8e772498c Update for 1.27 release. 2002-03-08 03:12:14 -05:00
Theodore Ts'o 7ef3bb838d mke2fs.c: Check for the BSD disklabel on all architectures, and
also check the byte-swapped magic number as well.
2002-03-08 03:01:53 -05:00
Theodore Ts'o 6693837e59 mke2fs.c: Output warnings to stderr
(From Philipp Thomas <pthomas@suse.de>)
2002-03-08 00:14:46 -05:00
Theodore Ts'o 546a1ff18c Fix various gcc -Wall complaints. 2002-03-07 23:52:56 -05:00
Theodore Ts'o 304905df4a Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
(From Philipp Thomas <pthomas@suse.de>)
2002-03-07 20:55:01 -05:00
Theodore Ts'o 756df353e8 mke2fs.c (zap_sector): Don't erase BSD disklabels on Alpha.
(From Thorsten Kukuk <kukuk@suse.de>)
2002-03-07 20:52:12 -05:00
Theodore Ts'o f2d5c93703 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.
2002-03-07 03:13:07 -05:00
Theodore Ts'o 3f83020370 ls.c (list_dir_proc): Fix typo in debugfs which was causing a
compiler warning.
2002-03-07 02:56:53 -05:00
Theodore Ts'o f122632e6b E2fsck now prints ranges in pass 5 when printing deltas in
the block and inode bitmaps.
2002-03-07 02:47:07 -05:00
Theodore Ts'o 045cf87226 ADD TAG: E2FSPROGS-1.27-WIP-0305 2002-03-05 03:37:06 -05:00
Theodore Ts'o a471ac5241 Update release notes with some last minute fixes. 2002-03-05 03:37:06 -05:00
Theodore Ts'o afa14ba0fd Update for 1.27-WIP release. 2002-03-05 03:31:06 -05:00
Theodore Ts'o 14308a5398 Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES. 2002-03-05 03:26:52 -05:00
Theodore Ts'o 7380ac9033 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".
2002-03-05 01:57:53 -05:00
Theodore Ts'o fa7c30276c In debugfs, make "ls -l" print out the file type information in the
directory entry.
2002-02-26 17:13:12 -05:00
Theodore Ts'o 57173d0feb 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.)
2002-02-26 14:59:39 -05:00
Andreas Dilger 0072f8de52 Add check for mkfs.ext3 and create a journal in this case. 2002-02-25 23:11:26 -07:00
Theodore Ts'o df614db6ef Add initial support in debugfs for examining directory indexing
information.
2002-02-25 04:28:45 -05:00
Theodore Ts'o 25813b1313 Fix typo in previous changeset; the man pages for fsck.ext2 and
fsck.ext3 should be linked to the one for e2fsck, not fsck.
2002-02-24 03:48:45 -05:00
Theodore Ts'o b9f409255e 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.
2002-02-24 03:08:57 -05:00
Theodore Ts'o 541d173d91 Update with the Debian package e2fsprogs-1.26-1.
Clarify and clean up the badblocks man page and the com_err info file.
2002-02-23 21:23:26 -05:00
Theodore Ts'o 64e1b274ed unix_io.c (unix_open): Fix 2.4 resource limit workaround so that
it doesn't break things on mis32, sparc32, and alpha
	platforms.
2002-02-23 18:50:32 -05:00
Theodore Ts'o d1a2182a18 Cleaned up journal handling code in e2fsck.
Fixed up two minor memory leaks.
2002-02-22 00:17:59 -05:00
Theodore Ts'o f3e3d31502 ismounted.c (is_swap_device): Fix file descriptor/memory leak;
we were missing an fclose().
2002-02-21 20:48:25 -05:00
Theodore Ts'o f12e285ffd 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.
2002-02-20 01:06:25 -05:00
Theodore Ts'o 7d4343d0d0 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.
2002-02-12 02:34:44 -05:00
tiniou@crusoe.alcove-fr d166e24a54 ADD TAG: E2FSPROGS-1_26 2002-02-06 15:59:55 +01:00
tiniou@crusoe.alcove-fr eac31fcd76 Corrected version number in e2fsprogs.spec, making able to rpm -ta again. 2002-02-06 15:59:55 +01:00
Theodore Ts'o 0d73590c71 ADD TAG: E2FSPROGS-1_26 2002-02-03 01:36:54 -05:00
Theodore Ts'o 0698739ad8 Fix really stupid date typo for 1.26 release-notes. 2002-02-03 01:36:54 -05:00
Theodore Ts'o fc29b57455 ADD TAG: E2FSPROGS-1_26 2002-02-03 01:32:57 -05:00
Theodore Ts'o 7de592a5b4 Final adjustment of LSM file before 1.26 release. 2002-02-03 01:32:57 -05:00
Theodore Ts'o 7f961d424b Fix bug where ext2fs_mkdir wasn't correctly bumping the number of
directories in use in a bloock group.
2002-02-03 01:28:52 -05:00
Theodore Ts'o 31a20a34da f_swapfs: Fix expect script to deal with extra spaces now printed
by debugfs's ls command.
2002-02-03 01:24:37 -05:00
Theodore Ts'o a5f3f5c191 Update files for 1.26 release. 2002-02-03 01:00:22 -05:00
Theodore Ts'o 5599c2fa87 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.
2002-02-03 00:08:52 -05:00