Theodore Ts'o [Wed, 21 May 2003 21:28:29 +0000 (17:28 -0400)]
mke2fs.c (PRS, set_fs_defaults): If the sector size of the
device is larger than the default block size, then use the
sector size of the device as the default block size.
getsectsize.c (ext2fs_get_device_sectsize): New function which
returns the hardware sector size (if it is available).
Theodore Ts'o [Sun, 18 May 2003 05:11:52 +0000 (01:11 -0400)]
badblocks.c: Use an unsigned integer to support 4-byte test
patterns with the high bit set. Let the user explicitly
specify a random pattern with the argument "random".
Theodore Ts'o [Sat, 17 May 2003 20:29:27 +0000 (16:29 -0400)]
MCONFIG.in, configure.in: Only put the intl directory in the -I
search path if we are using --with-internal-gettext.
Otherwise causes compatibility problems with the woody
glibc. (Addresses Debian bug #193372)
Theodore Ts'o [Wed, 14 May 2003 03:32:59 +0000 (23:32 -0400)]
main.c (main): Add the ability to specify units to the size
parameter, and make the error and information messages
display explicitly the blocksize used by the filesystem,
to avoid confusion. (Addresses Debian bug: #189814)
Theodore Ts'o [Wed, 14 May 2003 03:03:43 +0000 (23:03 -0400)]
util.c, ls.c, logdump.c, htree.c, dump.c, debugfs.h, debugfs.c, ChangeLog:
util.c (reset_getopt), debugfs.c (do_open_filesys,
do_show_super_stats), ls.c (do_list_dir), dump.c (do_dump),
htree.c (do_htree_dump, do_dx_hash), logdump.c (do_logdump):
Define and use a new function, reset_getopt(), which does whatever
is necessary to reset getopt() again. This is different for
different implementations, so the portabilty issues are a bit of a
nightmare. (Addresses Debian bug #192834)
Theodore Ts'o [Thu, 8 May 2003 14:39:50 +0000 (10:39 -0400)]
Debian packaging issues:
* Remove e2fsprogs-bf package, as it is obsolete. (Closes: #183453)
* Remove NLS support from e2fsprogs-udeb. Save 5.5k on the boot
floppies / install media.
Theodore Ts'o [Wed, 7 May 2003 13:52:14 +0000 (09:52 -0400)]
badblocks.c, badblocks.8.in: Functional enhancements contributed
by Thayne Harbaugh. These patches allow the -t option to
control the test pattern(s) used when checking the disk.
Test patterns may be specified in all modes (r/w, r/o and
non-destructive).
Theodore Ts'o [Wed, 7 May 2003 12:35:38 +0000 (08:35 -0400)]
badblocks.c (test_rw): Fix minor memory leak with test_rw() is
called for multiple passes.
(test_nd): Fix bug in chosing randomness for the
non-destructive test. We were only using 1 bit of
randomness per byte instead of 8 due to a bit-shift bug.
Also, initialize the random number generator from the time
in main(). Thanks to Thayne Harbaugh for pointing out
these bugs.
Theodore Ts'o [Mon, 5 May 2003 16:08:47 +0000 (12:08 -0400)]
Add --enable-test-io-debug configure option which causes e2fsck and
tune2fs to use the test I/O manager.
The test I/O manager has been changed to not do anything extra by
default, unless the TEST_IO_FLAGS and/or TEST_IO_BLOCK environment
variables are set, which controls what I/O operations are logged and
a block number to watch, respectively. The log messages are sent to
stderr by default, unless a filename is specified via the
TEST_IO_LOGFILE environment variable.
Theodore Ts'o [Mon, 5 May 2003 15:35:04 +0000 (11:35 -0400)]
debugfs.c (do_imap), debugfs.h, debug_cmds.ct, debugfs.8.in:
Added new command, imap, which prints the location of a
specified inode in the inode table.
e2fsck/rehash.c (name_cmp): Sort the deleted inodes to the end
of the list, for portability to systems that whose qsort
does not perform a stable sort.
Use setvbuf instead of setbuf to force stdout and
stderr to be non-buffered when the stdout/stderr are a pipe.
This fixes a cosmetic problem when using e2fsck under logsave.
* Add support for the -a and -s options to logsave.
* Change e2fsck to bracket its progress bar output with ctrl-A and ctrl-B
characters, so that logsave -s can omit writing the progress bar output
to the log file.
Add logsave, a new program which saves the output of a command
in a log file, even if the containing directory hasn't been
mounted yet (in which case the it saves the output in
memory until it can write out the logfile).
Remove EXT2_FEATURE_RO_COMPAT_BTREE_DIR mention of since it's not
actually used, and may confuse people who are looking for
EXT2_FEATURE_COMPAT_DIR_INDEX, which is in use.
Use the SS_READLINE_PATH environment variable to control the search
for a suitable readine library. As a default, try using libreadline,
libedit, and libeditline.
fsck.c (parse_fstab_line, interpret_type, fsck_device, ignore,
main): Don't evaluate the filesystem type when loading the
fstab file, since that might cause fsck to hang trying to
read from a floppy disk. (Addresses Debian bug #187812)
Add tmpfs and devpts to filesystems that should be
ignored, and add jfs, reseirfs, and xfs as filesystems
types where we should complain if we can't find the fsck
program for that filesystem type.
E2fsck now updates the global free block and
inode counters from the block group specific counters
quietly. This is needed for an experimental patch which
eliminates locking the entire filesystem when allocating
blocks or inodes; if the filesystem is not unmounted
cleanly, the global counts may not be accurate.
Fixed possible hangs caused by bugs in calling waitpid, and not
setting the pipe to non-blocking mode. Also fixed a file descriptor
leak. Made sure all functions call log entry/exit functions.
gen_uuid.c (get_random_bytes): Always xor in a stream of bytes
from the system PRNG (i.e., random/srandom, seeded from
the time, pid, and uid) in case /dev/random isn't doing
the right thing on a particular system. It doesn't hurt,
and it can help, in the case of a buggy /dev/random.
Theodore Ts'o [Sat, 15 Mar 2003 18:30:07 +0000 (13:30 -0500)]
rehash.c (e2fsck_rehash_dir): If user specified the -n option,
skip trying to write out directory.
(e2fsck_rehash_directories): Fix the percentage
calculation in the progress bar.