Theodore Ts'o [Fri, 1 Jun 2001 15:03:25 +0000 (15:03 +0000)]
ChangeLog, unpack.c, unparse.c, uuid_time.c:
unpack.c, unparse.c, uuid_time.c: Update files to be under the LGPL
(that somehow were missed when libuuid was converted to use the LGPL).
Whoops.
Theodore Ts'o [Fri, 25 May 2001 17:14:23 +0000 (17:14 +0000)]
ChangeLog, ismounted.c:
ismounted.c: More cleanups for ismounted.c, some from Andreas, some to
clean up Andreas's patches. Use strncpy instead of strcpy to save the
root's mountpoint. Clean up #ifdef structure. Remove uneeded
variable in testing/debug driver.
Theodore Ts'o [Fri, 25 May 2001 16:32:53 +0000 (16:32 +0000)]
ChangeLog, ismounted.c:
ismounted.c: Add check for root device which doesn't depend on
/etc/fstab or /proc/mounts to be correct. Don't call endmntent()
before we are done with mnt struct.
Theodore Ts'o [Wed, 23 May 2001 22:29:22 +0000 (22:29 +0000)]
ChangeLog, partinfo.c:
partinfo.c (main): Use unsigned long instead of long when querying the
size of a device using the BLKGETSIZE ioctl, to remove the 1TB limit
(and turn it into a 2TB limit :-)
Theodore Ts'o [Wed, 23 May 2001 22:19:47 +0000 (22:19 +0000)]
ChangeLog, journal.c, problem.c, problem.h:
journal.c (e2fsck_journal_reset_super): Fix bug; the reset journal
wasn't getting written out to disk since the dirty bit wasn't being
set on the buffer.
(e2fsck_journal_load): Don't print an error message if the journal
version number is wrong; just return a error code reflecting this
fact. If the block type in the journal superblcok is obviously not a
version number, report the journal is corrupted.
(e2fsck_check_ext3_journal): On an unsupported journal version, prompt
to abort by default, but then offer a chance to clear the journal as
corrupt.
problem.c, problem.h (PR_0_JOURNAL_UNSUPP_VERSION): Added new problem code.
Theodore Ts'o [Mon, 21 May 2001 05:23:31 +0000 (05:23 +0000)]
ChangeLog, ext2_fs.h:
ext2_fs.h: Change assignment of EXT2_FEATURE_COMPAT_DIR_INDEX to make
room for pre-existing usage of EXT2_FEATURE_COMPAT_EXT_ATTR. Add flag
EXT2_INDEX_FL with the same codepoint as EXT2_BTREE_FL.
Theodore Ts'o [Mon, 21 May 2001 02:54:21 +0000 (02:54 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: #include <> instead of "" for ext2fs and et header files,
since they will be installed in /usr/include
ChangeLog, e2p.h:
e2p.h: #include <> instead of "" for ext2fs and et header files, since
they will be installed in /usr/include
Theodore Ts'o [Mon, 21 May 2001 02:15:15 +0000 (02:15 +0000)]
ChangeLog, fsck.8.in, fsck.c:
fsck.8.in, fsck.c (compile_fs_type, fs_type, ignore): Fix handling of
-t option to be more intuitive. Also add support for the Mandrake -t
loop hack. See man page for description of new -t semantics.
Theodore Ts'o [Mon, 21 May 2001 01:41:37 +0000 (01:41 +0000)]
ChangeLog, fsck.c:
fsck.c (device_already_active): Fix bug in device_already_active which
could cause infinite loops if we don't know the base_device of the
filesystem.
Theodore Ts'o [Mon, 14 May 2001 13:04:44 +0000 (13:04 +0000)]
RELEASE-NOTES:
Update a typo and updated date for next WIP release.
e2fsprogs.lsm:
Updated approximate values for 1.20 release
version.h:
Update for new WIP release.
Theodore Ts'o [Mon, 14 May 2001 12:47:41 +0000 (12:47 +0000)]
ChangeLog, pass1.c, problem.c, problem.h, problemP.h:
pass1.c: Treat inodes with a low dtime (that were from a corrupted
orphan list) specially.
problem.c, problem.h: Add new problem codes PR_1_LOW_DTIME and
PR_1_ORPHAN_LIST_REFUGEES, and a new latch group, PR_LATCH_LOW_DTIME.
problemP.h: Expand the size of the problem flag to be an int instead
of a short. Expand space in the flag word which is reserved for
problem latch flags from 3 bits to 8 bits.
ChangeLog, expect.1, expect.2, image.gz, name:
f_badorphan: New test which verifies corrupted orphan list handling.
Theodore Ts'o [Mon, 14 May 2001 11:45:38 +0000 (11:45 +0000)]
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2image.c, findsuper.c, lsattr.c,
mke2fs.c, mklost+found.c, tune2fs.c, util.c: Change location of
ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, resize2fs.h:
resize2fs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, debugfs.h:
debugfs.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, e2fsck.h, scantest.c:
e2fsck.h, scantest.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
ChangeLog, Makefile.in, tst_uuid.c, uuid_time.c:
tst_uuid.c, uuid_time.c: Remove unneeded #include of ext2_fs.h
ChangeLog, Makefile.in, e2p.h:
e2p.h: Change location of ext2_fs.h to be ext2fs/ext2_fs.h
ChangeLog, Makefile.in, test_icount.c, test_rel.c:
test_icount.c, test_rel.c: Change location of ext2_fs.h to be
ext2fs/ext2_fs.h
Theodore Ts'o [Mon, 14 May 2001 04:12:27 +0000 (04:12 +0000)]
ChangeLog:
Clarify some of the Changelog entries.
ChangeLog, fsck.8.in, mke2fs.8.in, tune2fs.8.in:
fsck.8.in, mke2fs.8.in, tune2fs.8.in: Fix typo's and make other
clarifications suggested by Andreas Dilger.
ChangeLog, tune2fs.c:
tune2fs.c (update_feature_set): Clean up some printf messages.
Theodore Ts'o [Mon, 14 May 2001 04:06:56 +0000 (04:06 +0000)]
ChangeLog, e2fsck.h, journal.c, problem.c, problem.h, super.c:
super.c (check_super_block): Be more strict on checking
s_r_blocks_count superblock field.
problem.c, problem.h (PR_0_JOURNAL_UNSUPP_ROCOMPAT,
PR_0_JOURNAL_UNSUPP_INCOMPAT, PR_0_JOURNAL_RESET_COMPAT): New problem
codes.
journal.c (e2fsck_journal_load): Use a problem code to report
unsupported feature flags. There is code to clear unsupported flags,
but since this is dangerous, it's not allowed in the problem code
table.
journal.c (e2fsck_journal_reset_super): initialize the journal
sequence number to a random value to avoid recovering bad transactions
from a corrupt journal.
Theodore Ts'o [Sun, 13 May 2001 22:58:27 +0000 (22:58 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (PRS): Integrated changes from Andreas Dilger which make the
revision superblock field be set to the correct value depending on if
superblock features are set.
Theodore Ts'o [Sun, 13 May 2001 22:14:53 +0000 (22:14 +0000)]
ChangeLog, ls.c:
ls.c (print_features): Added missing space when printing (none) as the
filesystem feature.
(list_super2): If the filesystem revision is unknown, say so.
Theodore Ts'o [Sat, 12 May 2001 16:12:12 +0000 (16:12 +0000)]
ChangeLog, fsck.c:
fsck.c (PRS): fsck -? now prints the usage message.
ChangeLog, jfs.h:
jfs.h (JFS_DEBUG): Don't define JFS_DEBUG for non-kernel builds; if
necessasry it can be set with configure --enable-jfs-debug
Theodore Ts'o [Sat, 5 May 2001 16:42:24 +0000 (16:42 +0000)]
ChangeLog, fileio.c:
fileio.c (ext2fs_file_read): Factored out common code and cleaned up
function. Fixed a bug where if there was an error reading from the
disk, the number of bytes read wasn't reliably set. (Fixes Debian bug
#79163)
(ext2fs_file_write): Factored out common code and made function more
efficient; if writing a full block, don't bother to do a
read-modify-write cycle.
Theodore Ts'o [Sat, 5 May 2001 06:47:24 +0000 (06:47 +0000)]
ChangeLog, util.c:
util.c (fatal_error): Use the correct magic number when checking the
magic number for the io_channel data structure. Also remove
extraneous call to io_channel_flush() that was left over from an
editing session.
Theodore Ts'o [Sat, 5 May 2001 05:43:23 +0000 (05:43 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Fixed man page to describe the first optional
parameter to badblocks as last_block, instead of num_blocks. (Debian
nbug #87216)
badblocks.c: Change the blocks_count variable to be last_count, which
is a more accurate description of the variable.
Theodore Ts'o [Sat, 5 May 2001 05:12:14 +0000 (05:12 +0000)]
ChangeLog, dirblock.c:
dirblock.c (ext2fs_read_dir_block): Check for an directory record
length which isn't a multiple four, and treat that as an invalid.
Scan the directory and return an error (EXT2_ET_DIR_CORRUPTED) if the
directory records are orrupted.
(ext2fs_write_dir_block): If while byte-swapping the directory block,
if there's an error, abort and return EXT2_ET_DIR_CORRUPTED.
Theodore Ts'o [Thu, 3 May 2001 14:43:43 +0000 (14:43 +0000)]
ChangeLog, dumpe2fs.8.in, dumpe2fs.c:
dumpe2fs.c (main): Add new flag, -i, which will allow dumpe2fs to dump
out the filesystem statistics from an ext2 image file.
Many files:
e2image.8.in: New manual page
badblocks.8.in, e2label.8.in, mke2fs.8.in mklost+found.8.in,
tune2fs.8.in: Update location of e2fsprogs to be
http://e2fsprogs.sourceforge.net.
Theodore Ts'o [Thu, 3 May 2001 04:02:29 +0000 (04:02 +0000)]
Many files:
ext2fs.h (EXT2_FLAG_IMAGE_FILE): Add new flag, and add image_header
field in the ext2_filsys structure
block.c (block_iterate_ind, block_iterate_dind, block_iterate_tind):
inode.c (ext2fs_read_inode):
rw_bitmaps.c (read_bitmaps):
openfs.c (ext2fs_open): Add support for EXT2_FLAG_IMAGE_FILE
imager.c (ext2fs_image_bitmap_read): Fix bug in imager to make sure
the full bitmap is saved.
Theodore Ts'o [Tue, 1 May 2001 21:13:37 +0000 (21:13 +0000)]
ChangeLog, unix.c:
unix.c (PRS): Validate the completion information file descriptor so
that the completion bar won't get accidentally written onto the disk.
Theodore Ts'o [Tue, 1 May 2001 19:04:28 +0000 (19:04 +0000)]
ChangeLog, dir_iterate.c:
dir_iterate.c (ext2fs_process_dir_block): Add a double-check to make
sure the rec_len is a multiple of 4, to prevent bus-errors on
architectures which care about mis-aligned pointer references.
Theodore Ts'o [Tue, 1 May 2001 16:01:34 +0000 (16:01 +0000)]
.del-ext2_fs.h~7a460879, ChangeLog:
ext2_fs.h: New feature assignments for
EXT2_FEATURE_COMPAT_RESIZE_INODE for Andreas Dilger and
EXT3_FEATURE_COMPAT_DIR_INDEX for Daniel Phillips. Synchronize kernel
function prototypes (which don't matter for e2fsprogs) with Linux
2.4.4.
Theodore Ts'o [Tue, 1 May 2001 15:44:37 +0000 (15:44 +0000)]
ChangeLog, fsck.c:
fsck.c (device_already_active): If we're not able to determine the
base device, we should assume that the device is already active in
order to force serialization.
Theodore Ts'o [Tue, 1 May 2001 15:32:44 +0000 (15:32 +0000)]
ChangeLog, compare.c, gen_uuid.c, parse.c:
parse.c, compare.c: Include string.h to fix gcc -Wall complaints.
gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors because some
required structures wouldn't be otherwise defined. Fix a minor gcc
-Wall nit in the declaration of get_random_fd().
ChangeLog, tune2fs.c:
tune2fs.c (parse_tune2fs_options): Interpret -c 0 as -c -1 (for
backwards compatibility with older kernels). -c 0 makes more sense to
users.
tune2fs.8.in:
Update tune2fs manual papge so that it is up to date.
ChangeLog, tune2fs.c:
tune2fs.c (remove_journal_device): If the force flag is given, tune2fs
will remove the journal device information from the superblock even if
tune2fs failed to open the journal device or otherwise other failed to
remove the filesystem from journal device.
(parse_tune2fs_options): Fix -j option so that it works (it was
missing the open_flag being set to EXT2_FLAG_RW).
(main): Accept "-U clear" to set a null UID.
ChangeLog, subst.c:
subst.c (replace_string): Fix replace_string so that it correctly
handles replacing a substitution variable with a zero-length string.
ChangeLog, mke2fs.c:
mke2fs.c (create_journal_dev): Call ext2fs_create_journal_superblock()
first, so if it's going to error out, the user finds out before
waiting for the entire device to get zero'ed.
ChangeLog, util.c:
util.c (parse_journal_opts): Remove code which allowed a bare number
to be treated as a journal size.
ChangeLog, Makefile.in, ismounted.c:
ismounted.c (check_mntent): Check /proc/mounts on Linux systems before
checking /etc/mtab. The EXT2_MF_READONLY flag is now set from the
/etc/mtab options field for all filesystems, not just the root
filesystem. Add debugging code to make it easier to test
ext2fs_check_if_mounted().
ChangeLog, ext2_err.et.in, mkjournal.c:
mkjournal.c (ext2fs_create_journal_superblock): Add safety check;
return an error if there's an attempt to create a journal less than
1024 filesystem blocks.
ext2_err.et.in, mkjournal.c: Change EXT2_JOURNAL_NOT_BLOCK and
EXT2_NO_JOURNAL_SB to be EXT2_ET_*.
ChangeLog, super.c:
super.c (check_super_block): Fix bad calculation of inodes_per_block,
and tighten min/max checks to be a bit more paranoid. Thanks to
Andreas Dilger for pointing out this bug.
Theodore Ts'o [Thu, 29 Mar 2001 20:49:58 +0000 (20:49 +0000)]
Many files:
debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
internal_dump_inode() interface for the logdump command.
logdump.c: Imported code from Stephen Tweedie to dump the ext3 journal.
Theodore Ts'o [Thu, 29 Mar 2001 19:19:24 +0000 (19:19 +0000)]
jfs.h:
Move things around so that user-mode stuff is outside #ifdef LINUX,
and stuff which is kernel-only into #ifdef LINUX. (Should be synced up
with sct).
Theodore Ts'o [Mon, 26 Mar 2001 20:07:13 +0000 (20:07 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
ke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
journal must be bewteen 1024 and 10,240 file system blocks.
mke2fs.c, tune2fs.c: Change to use figure_journal_size()
util.c, util.h (figure_journal_size): Change journal_default_size into
routine which also converts the requested journal size into filesystem
blocks and does bounds checking to make sure the journal is sized
reasonably. Renamed function to journal_default_size.
parse_journal_opts): Remove bounds check for the journal size, since
this is now done in figure_journal_size, and based on the number of
filesystem blocks, as opposed to using the absolute size of the
journal.