Whamcloud - gitweb
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 16:21:48 +0000 (16:21 +0000)]
ChangeLog, expect, name, script:
d_loaddump: New test which verifies debugfs's dump and load routines.
dirblock.c:
Fix misc. gcc -Wall errors
Theodore Ts'o [Sat, 5 May 2001 06:49:27 +0000 (06:49 +0000)]
ChangeLog, config.guess, config.sub:
config.guess, config.sub: Update to use latest version from FSF
(2001-04-20)
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 06:45:05 +0000 (06:45 +0000)]
ChangeLog, fsck.8.in:
fsck.8.in: Add explicit language to describe how options get passed to
filesystem-specific checkers.
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:14:59 +0000 (05:14 +0000)]
ChangeLog, pass2.c:
pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors from
ext2fs_read_dir_block().
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 16:30:48 +0000 (16:30 +0000)]
e2image.8.in:
Updates and clarifications to the manual page.
Theodore Ts'o [Thu, 3 May 2001 16:24:57 +0000 (16:24 +0000)]
e2image.c:
Update copyright date.
:
Theodore Ts'o [Thu, 3 May 2001 15:05:55 +0000 (15:05 +0000)]
ChangeLog, debugfs.8.in, debugfs.c:
debugfs.c (do_open_filesys, main): Add -i option which will allow
debugfs to examine ext2 image files.
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 13:33:11 +0000 (13:33 +0000)]
ChangeLog, e2image.c:
e2image.c (main): Fix format of e2image to be easier to be parse by
ext2fs_open().
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 20:01:08 +0000 (20:01 +0000)]
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Add explanation that you can use mke2fs -n -b blocksize
to printout alternate superblock locations.
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().
Theodore Ts'o [Thu, 26 Apr 2001 04:25:39 +0000 (04:25 +0000)]
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.
Theodore Ts'o [Thu, 26 Apr 2001 04:11:46 +0000 (04:11 +0000)]
ChangeLog, unix.c:
unix.c (check_if_skip): If the max_mount_count is zero, treat it as
having no count set.
Theodore Ts'o [Thu, 26 Apr 2001 01:42:37 +0000 (01:42 +0000)]
ChangeLog, getsize.c:
getsize.c (ext2fs_get_device_size): Use an unsigned long to query the
device sizes using the BLKGETSIZE ioctl.
Theodore Ts'o [Mon, 23 Apr 2001 20:58:03 +0000 (20:58 +0000)]
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.
Theodore Ts'o [Sun, 22 Apr 2001 20:39:07 +0000 (20:39 +0000)]
ChangeLog, subst.conf.in:
subst.conf.in: Add definition of JDEV for mke2fs' and tune2fs' man page.
Theodore Ts'o [Sun, 22 Apr 2001 03:58:32 +0000 (03:58 +0000)]
ChangeLog, mke2fs.8.in:
mke2fs.8.in: Manual page cleanups. Temporarily comment out the
documentation for the extern journal device support.
Theodore Ts'o [Sun, 22 Apr 2001 03:47:23 +0000 (03:47 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (usage): Remove the deprecated -s option from the usage message.
Theodore Ts'o [Sat, 21 Apr 2001 20:53:43 +0000 (20:53 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (main): Add better explanation about when the filesystem will
be checked after it is created.
Theodore Ts'o [Tue, 17 Apr 2001 05:05:37 +0000 (05:05 +0000)]
ChangeLog, subst.c:
subst.c (replace_string): Fix replace_string so that it correctly
handles replacing a substitution variable with a zero-length string.
Theodore Ts'o [Tue, 17 Apr 2001 02:34:41 +0000 (02:34 +0000)]
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.
Theodore Ts'o [Tue, 17 Apr 2001 02:22:05 +0000 (02:22 +0000)]
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().
Theodore Ts'o [Tue, 17 Apr 2001 01:01:49 +0000 (01:01 +0000)]
ChangeLog, mke2fs.c, tune2fs.c:
mke2fs.c, tune2fs.c: Add newlines to error messages so that they look
nicer.
Theodore Ts'o [Tue, 17 Apr 2001 00:53:25 +0000 (00:53 +0000)]
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_*.
Theodore Ts'o [Tue, 17 Apr 2001 00:40:02 +0000 (00:40 +0000)]
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:22:16 +0000 (19:22 +0000)]
ChangeLog, jfs_user.h, journal.c:
journal.c (mark_buffer_uptodate): Add emulation of kernel function
mark_buffer_uptodate.
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 [Thu, 29 Mar 2001 19:16:44 +0000 (19:16 +0000)]
revoke.c:
Make insert_revoke_hash static (since it's not used outside this function).
Theodore Ts'o [Thu, 29 Mar 2001 19:00:50 +0000 (19:00 +0000)]
ChangeLog, recovery.c, revoke.c:
recovery.c, revoke.c: Synchronize with 0.6b ext3 files.
Theodore Ts'o [Thu, 29 Mar 2001 18:55:43 +0000 (18:55 +0000)]
.del-jfs_e2fsck.h~
c0cc80d6:
Remove obsolete header file.
Theodore Ts'o [Thu, 29 Mar 2001 18:18:55 +0000 (18:18 +0000)]
jfs.h:
Update to synchronize with 0.6b version of jfs.h
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.
Theodore Ts'o [Sun, 18 Mar 2001 18:16:18 +0000 (18:16 +0000)]
ChangeLog, debugfs.c:
debugfs.c (do_write, do_mknod): Remove extra (useless) call to
ext2fs_write_inode.
Theodore Ts'o [Tue, 20 Feb 2001 16:31:38 +0000 (16:31 +0000)]
journal.c:
Fix stupid typo.
Theodore Ts'o [Tue, 20 Feb 2001 16:28:40 +0000 (16:28 +0000)]
ChangeLog, Makefile.in, bitops.h, tst_byteswap.c:
bitops.h (ext2fs_swab16, ext2fs_swab32): Add i386 assembly inline
functions.
tst_byteswap.c: New function to test the byteswap functions. Add to
regression test suite.
Theodore Ts'o [Sat, 17 Feb 2001 06:09:50 +0000 (06:09 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (main): Flush out the "creating journal" message. Also
handle the case where the default journal size returns zero blocks ==
no journal. Print out how often the filesystem will be checked.
Theodore Ts'o [Tue, 13 Feb 2001 04:32:53 +0000 (04:32 +0000)]
ChangeLog, journal.c:
journal.c (e2fsck_run_ext3_journal): Force a flush of the filesystem
and io_channel before replaying the journal.
Theodore Ts'o [Thu, 8 Feb 2001 05:45:17 +0000 (05:45 +0000)]
ChangeLog, e2image.c:
e2image.c (main): Add code to write the e2image header.
ChangeLog, e2image.h:
e2image.h (struct ext2_image_hdr): Fix type for fs_hostname
Theodore Ts'o [Thu, 8 Feb 2001 05:00:05 +0000 (05:00 +0000)]
libuuid.3.in:
Fix man page formatting
Theodore Ts'o [Thu, 8 Feb 2001 03:37:16 +0000 (03:37 +0000)]
ChangeLog, mkjournal.c:
mkjournal.c (ext2fs_create_journal_superblock): Fix the setting of
s_first for external devices to always be 1, since jsb->s_first is
always relative to the start of the journal superblock. Use htonl(1)
when setting s_nr_users.
Theodore Ts'o [Thu, 8 Feb 2001 03:28:18 +0000 (03:28 +0000)]
ChangeLog, tune2fs.8.in:
tune2fs.8.in: Update man page to reflect that 2.0.39 supports
sparse_super.
Theodore Ts'o [Thu, 8 Feb 2001 03:24:18 +0000 (03:24 +0000)]
ChangeLog, dumpe2fs.c:
dumpe2fs.c (list_desc): Fix fencepost error when calculating the range
of inode table blocks. Add '0x' to values printed in hex.
Theodore Ts'o [Thu, 8 Feb 2001 03:06:43 +0000 (03:06 +0000)]
ChangeLog, chattr.c, lsattr.c:
chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the use of
the LFS so that lstat will work on large files.
Theodore Ts'o [Thu, 8 Feb 2001 02:38:07 +0000 (02:38 +0000)]
uuidgen.c:
Add check for HAVE_STDLIB_H before including stdlib.h
Theodore Ts'o [Thu, 8 Feb 2001 02:34:50 +0000 (02:34 +0000)]
problem.c:
Add quick compression of journal -> @j
jfs.h:
Eliminate force of JFS_DEBUG for userspace
Theodore Ts'o [Thu, 8 Feb 2001 02:26:04 +0000 (02:26 +0000)]
journal.c:
Fix minor typo in C comment
Theodore Ts'o [Thu, 8 Feb 2001 02:18:52 +0000 (02:18 +0000)]
Makefile.in, configure, configure.in:
Update for initial finddev library.
Theodore Ts'o [Thu, 18 Jan 2001 02:37:21 +0000 (02:37 +0000)]
Makefile.in:
Update makefile dependencies
Theodore Ts'o [Thu, 18 Jan 2001 02:34:03 +0000 (02:34 +0000)]
ChangeLog, pass1.c:
pass1.c (check_blocks): Fix large file checking code so that files >
2GB are considered large files, and restrict directories from being >
2GB.
version.h:
Update for WIP release.
Theodore Ts'o [Thu, 18 Jan 2001 01:51:15 +0000 (01:51 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c:
tune2fs.c, mke2fs.c, tune2fs.8.in, mke2fs.8.in: Change user interface
so that -J is used to specify journal options, and -j is used to
request creation of a journal using default values. (This is a UI
change, but we haven't done a formal release, and it makes things much
more consistent with the rest of the options out there.)
tune2fs.c: Add support for removing a filesystem from an external
journal; we correctly remove the filesystem UUID from the external
journal's filesystem list.
Theodore Ts'o [Thu, 18 Jan 2001 01:47:48 +0000 (01:47 +0000)]
ChangeLog, util.c, util.h:
util.h, util.c (journal_default_size): New function from Andreas
Dilger to calculate an appropriate default journal size given a
filesystem size.
util.c (parse_journal_opts): Allow the creation of a journal as small
as 1MB.
Theodore Ts'o [Thu, 18 Jan 2001 01:44:19 +0000 (01:44 +0000)]
ChangeLog, mkjournal.c:
mkjournal.c (ext2fs_add_journal_device): Fix bug where the device
number of the filesystem (instead of the journal) was being dropped
into s_journal_dev.
ChangeLog, dumpe2fs.c:
dumpe2fs.c (print_journal_information): Use s_first_data_block to find
the correct block to read the journal superblock.
Theodore Ts'o [Tue, 16 Jan 2001 07:47:31 +0000 (07:47 +0000)]
ChangeLog, Makefile.in, dumpe2fs.c, jfs_user.h, mke2fs.c, tune2fs.c:
tune2fs.c: Changed the external journal code so that it simply adds a
filesystem to a journal; the journal must have bene created via
"mke2fs -O journal_dev /dev/XXX".
mke2fs.c: Add support for creating an external journal device by using
the command "mke2fs -O journal_dev /dev/XXX". Also changed the
external journal code so -j device=/dev/XXX it simply adds a
filesystem to that journal; the journal must have been created via
separate step.
dumpe2fs.c (print_journal_information): Add support for dumping
information about an external journal device.
Theodore Ts'o [Tue, 16 Jan 2001 06:56:14 +0000 (06:56 +0000)]
ChangeLog, ext2_err.et.in, ext2fs.h, initialize.c, mkjournal.c, openfs.c:
initialize.c (ext2fs_initialize): Add support for initializing the
ext2 superblock for external journal devices. This basically means we
don't bother to allocate any block group descriptors.
openfs.c (ext2fs_open): Only open external journal devices if the new
flag EXT2_FLAG_JOURNAL_DEV_OK is passed to ext2fs_open. When opening
such devices, don't try to read the block group descriptors, since
they're not there.
ext2_err.et.in (EXT2_NO_JOURNAL_SB): Add new error code
mkjournal.c: Export a new function,
ext2fs_create_journal_superblock(), which allocates and returns a
buffer containing a journal superblock. This is needed by mke2fs to
create an external journal. Rewrote ext2fs_add_journal_device() so
that it no longer creates the external journal, but rather adds a
filesystem to an existing external journal. It handles all of the
UUID manipulation.
ext2fs.h: List the EXT3_FEATURE_JOURNAL_DEV as a flag supported by the
library. Define the EXT2_FLAG_JOURNAL_DEV_OK. Changed function
prototype for ext2fs_add_journal_device().
Theodore Ts'o [Tue, 16 Jan 2001 06:41:54 +0000 (06:41 +0000)]
ChangeLog, ls.c:
ls.c (list_super2): Fix bug where we were printing the filesystem UUID
instead of journal UUID when trying to display the journal UUID.
Theodore Ts'o [Sun, 14 Jan 2001 18:10:49 +0000 (18:10 +0000)]
ChangeLog, feature.c:
feature.c: Add definition for EXT3_FEATURE_INCOMPAT_JOURNAL_DEV
Theodore Ts'o [Sun, 14 Jan 2001 18:03:43 +0000 (18:03 +0000)]
ChangeLog, closefs.c:
closefs.c (ext2fs_flush): Don't write out anything beyond the primary
superblock if EXT2_INCOMPAT_JOURNAL_DEV is listed.
Theodore Ts'o [Sun, 14 Jan 2001 17:56:00 +0000 (17:56 +0000)]
ChangeLog, feature.c:
feature.c: Remove backward compatibility #ifdef's for old ext2_fs.h
header files.
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h (EXT3_FEATURE_INCOMPAT_JOURNAL_DEV): Add definition for use
with external journal devices.
Theodore Ts'o [Sun, 14 Jan 2001 17:02:09 +0000 (17:02 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c:
mke2fs.c: Add new filesystem types, largefile and largefile4, for
those filesystems whose average inode size is 1MB and 4MB,
respectively. Allow the inode ratio specified to be has high as 4MB.
Make the s_max_mount_count vary between 20 and 40, to avoid needing to
check all of the filesystems at the same time. Add some random jitter
to the s_max_mount_count value so that we avoid checking all of the
filesystems at the same time when we reboot.
Theodore Ts'o [Sun, 14 Jan 2001 16:25:58 +0000 (16:25 +0000)]
ChangeLog, tune2fs.8.in:
tune2fs.8.in: Add description of the -j option.
tune2fs.c:
Minor whitespace and option ordering fixes from Andreas Dilger
Theodore Ts'o [Sun, 14 Jan 2001 16:11:14 +0000 (16:11 +0000)]
ChangeLog, tune2fs.c:
tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush stdout
after printing in-progress message.
(main): Exit with status code 1 if we failed to determine the mount
status of the device.
ChangeLog, gcc-wall-cleanup:
gcc-wall-cleanup: Remove additional annoying warning messages emited
by gcc 2.95.2.
ChangeLog, uuid.h:
uuid: Change arguments to make it clear which argument is the source
and which is the destination.
Theodore Ts'o [Sat, 13 Jan 2001 01:29:05 +0000 (01:29 +0000)]
ChangeLog, setsuper.c:
setsuper.c: Cleaned up some random whitespace problems.
ext2fs.h:
Fixed spelling mistake in comment.
Theodore Ts'o [Fri, 12 Jan 2001 21:53:25 +0000 (21:53 +0000)]
ChangeLog, pass1.c, problem.c, problem.h:
pass1.c (e2fsck_pass1): Cap the maximum legal size of a file by the
limit caused by the fact that i_blocks is in 512 byte units, and that
the Linux buffer cache also fundamentally assumes 512 byte sectors.
Make sure that the journal inode is a regular file, and when clearing
an unused journal inode, make sure the icount db is updated.
problem.c, problem.h (PR_1_JOURNAL_BAD_MODE): Add new problem code.
ChangeLog, journal.c:
journal.c (e2fsck_journal_fix_unsupported_super): Remove unused
function. Add FIXME notes to e2fsck_get_journal(), from Andreas
Dilger.
Theodore Ts'o [Fri, 12 Jan 2001 21:16:13 +0000 (21:16 +0000)]
ChangeLog, problem.c:
problem.c: For PR_1_RESERVED_BAD_MODE, print a description of the
reserved inode. In PR_0_JOURNAL_HAS_JOURNAL, prompt to clear the
journal, rather than deleting it (which is more accurate). (From
Andreas Dilger.)
Theodore Ts'o [Fri, 12 Jan 2001 21:11:24 +0000 (21:11 +0000)]
ChangeLog, journal.c:
journal.c: Make sure all functions which return an error code use the
errcode_t return type, and not "int"
(e2fsck_journal_release): Add new parameter, "drop", which is used
when we just want to deallocate the journal without trying to write
out any changes.
(mark_buffer_clean): New function e2fsck_check_ext3_journal): If we
fail loading the journal, make sure we free all memory associated with
it.
(recover_ext3_journal): If we fail to load the journal or initialize
the revoke data structures, make sure we free all memory associated
with the journal.
Theodore Ts'o [Fri, 12 Jan 2001 21:05:57 +0000 (21:05 +0000)]
ChangeLog, super.c:
super.c: Minor whitespace cleanups, from Andreas Dilger.
mtrace.h:
mtrace.h: Minor whitespace cleanups, from Andreas Dilger.
ChangeLog, message.c:
message.c (special_inode_name): Add more special inode names (From
Andreas Dilger)
Theodore Ts'o [Fri, 12 Jan 2001 20:59:19 +0000 (20:59 +0000)]
ChangeLog, util.c:
util.c (fatal_error): Check to make sure the io_manager data structure
is sane before trying to flush the io_channel. (From Andreas Dilger)
Theodore Ts'o [Fri, 12 Jan 2001 20:25:50 +0000 (20:25 +0000)]
ChangeLog, pass2.c:
pass2.c: Minor whitespace cleanups, from Andreas Dilger.
Theodore Ts'o [Fri, 12 Jan 2001 18:30:54 +0000 (18:30 +0000)]
ChangeLog, copy.c, gen_uuid.c, tst_uuid.c, uuid_time.c:
uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints.
copy.c (uuid_copy): Change arguments to make it clear which argument
is the source and which is the destination.
gen_uuid.c (get_random_fd): Use gettimeofday to seed the PRNG, so we
can take advantage of tv_usec to do (slightly) better at seeding it.
Theodore Ts'o [Fri, 12 Jan 2001 17:26:05 +0000 (17:26 +0000)]
ChangeLog, imager.c:
imager.c: Fix gcc -Wall complaints and a series of bugs where retval
wasn't set correctly. (Thanks to Andreas Dilger for pointing this
out.)
Theodore Ts'o [Fri, 12 Jan 2001 17:23:52 +0000 (17:23 +0000)]
ChangeLog, debugfs.c, debugfs.h:
debugfs.h, debugfs.c (do_show_super_stats): Use full words instead of
pluralism hack to make I18N conversion easier. Clean up gcc -Wall
complaints.
Theodore Ts'o [Fri, 12 Jan 2001 15:30:25 +0000 (15:30 +0000)]
ChangeLog, journal.c, problem.c:
journal.c (e2fsck_journal_fix_bad_inode): Set pctx->ino to the bad
journal number.
problem.c (PR_0_JOURNAL_BAD_INODE): Use pctx->ino instead of pctx->num
when printing the bad journal inode number.
Theodore Ts'o [Fri, 12 Jan 2001 01:43:28 +0000 (01:43 +0000)]
ChangeLog, pf.c:
pf.c: Clarified name of the Compression_Raw_Access flag, and
capitalized Journaled_Data.
Theodore Ts'o [Fri, 12 Jan 2001 00:34:29 +0000 (00:34 +0000)]
ChangeLog, Makefile.in:
Makefile.in (PROG_SUBDIRS): Build lib/e2p before lib/ext2fs since
libext2fs depends on libe2p.
Theodore Ts'o [Thu, 11 Jan 2001 19:15:02 +0000 (19:15 +0000)]
ChangeLog, e2fsck.h, flushb.c, iscan.c, unix.c:
iscan.c, unix.c, e2fsck.h: Don't use NOARGS, and use
ext2fs_sync_device() instead of using BLKFLSBUF.
flushb.c: Don't use NOARGS anymore; everything is STDC these days.
ChangeLog, pass1.c:
pass1.c (process_block): Remove dead code which was never getting
executed.
Theodore Ts'o [Thu, 11 Jan 2001 16:11:11 +0000 (16:11 +0000)]
ChangeLog, main.c:
main.c (main): Use ext2fs_sync_device() instead of calling the
BLKFLSBUF ioctl directly.
Theodore Ts'o [Thu, 11 Jan 2001 16:08:23 +0000 (16:08 +0000)]
ChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c:
e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: Fix
gcc -Wall complaints, including one bug in tune2fs caused by a block
automatic shadowing version of the variable we really wanted to use,
which broke the logic testing to see if the filesystem was mounted.
ChangeLog, MCONFIG.in:
(gcc-wall-new): Added new target which forgoes the make clean so we
only check the newly modified .c files.
Theodore Ts'o [Thu, 11 Jan 2001 16:04:59 +0000 (16:04 +0000)]
ChangeLog, badblocks.c:
badblocks.c (flush_bufs): Use ext2fs_sync_device() to sync and flush
the device.
Theodore Ts'o [Thu, 11 Jan 2001 15:48:50 +0000 (15:48 +0000)]
ChangeLog, MCONFIG.in, configure, configure.in:
MCONFIG.in: Change --enable-gcc-wall handling so that it's no longer a
configure option, but something which is done when the developer uses
the command "make gcc-wall".
configure.in: Remove test for ino_t, since we don't use it any more
(we always use our own ext2_ino_t). Remove --enable-gcc-wall support.
Add test for sys/ioctl.h
.del-types.h.in~
ca55114a:
Remove definition of ino_t
ChangeLog, Makefile.in, ext2fs.h, flushb.c, jump.funcs:
flushb.c (ext2fs_sync_device): New function which centralizes all of
the places which might try to use the BLKFLSBUF or FDFLUSH ioctls (and
usually failing to define them since the system header files don't
usually do this for us, and we're trying to avoid usage of kernel
include files now.)
Theodore Ts'o [Thu, 11 Jan 2001 15:44:00 +0000 (15:44 +0000)]
ChangeLog, gcc-wall-cleanup:
gcc-wall-cleanup: New file which is used to clean up unnecessary
crud from gcc -Wall that we're not interested in seeing
Theodore Ts'o [Thu, 11 Jan 2001 15:38:00 +0000 (15:38 +0000)]
ChangeLog, libext2fs.texinfo:
libext2fs.texinfo: Change ino_t to ext2_ino_t
ChangeLog, extent.c, main.c, resize2fs.c:
extent.c, main.c, resize2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, mke2fs.c:
mke2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, test_icount.c, test_rel.c:
test_icount.c, test_rel.c: Change ino_t to ext2_ino_t
Theodore Ts'o [Thu, 11 Jan 2001 15:26:39 +0000 (15:26 +0000)]
Many files:
debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
setsuper.c, util.c: Change ino_t to ext2_ino_t. Fix a few minor
gcc-wall complaints while we're at it.
Theodore Ts'o [Thu, 11 Jan 2001 15:12:14 +0000 (15:12 +0000)]
Many files:
dirinfo.c, e2fsck.h, emptydir.c, iscan.c, jfs_user.h, journal.c,
message.c, pass1.c, pass1b.c, pass2.c, pass3.c, pass4.c, pass5.c,
problem.h, scantest.c, super.c, swapfs.c: Change ino_t to ext2_ino_t.
Theodore Ts'o [Thu, 11 Jan 2001 04:58:21 +0000 (04:58 +0000)]
ChangeLog, problem.c:
problem.c: Fix another broken @F vs @f problem.
Theodore Ts'o [Thu, 11 Jan 2001 04:54:39 +0000 (04:54 +0000)]
Many files:
alloc.c, bb_inode.c, bitmaps.c, bitops.h, block.c, bmap.c, bmove.c,
brel.h, cmp_bitmaps.c, dblist.c, dblist_dir.c, dir_iterate.c,
expanddir.c, ext2fs.h, ext2fsP.h, fileio.c, finddev.c, get_pathname.c,
icount.c, inode.c, irel.h, irel_ma.c, ismounted.c, link.c, lookup.c,
mkdir.c, mkjournal.c, namei.c, newdir.c, read_bb_file.c, test_io.c,
tst_iscan.c, unix_io.c, unlink.c: Change use of ino_t to ext2_ino_t,
to protect applications that attempt to compile
-D_FILE_OFFSET_BITS=64, since this inexplicably changes ino_t(!?). So
we use ext2_ino_t to avoid an unexpected ABI change.
Theodore Ts'o [Tue, 9 Jan 2001 00:16:26 +0000 (00:16 +0000)]
ChangeLog, Makefile.in, tune2fs.c:
Makefile.in, tune2fs.c: Move e2label functionality into tune2fs, using
argv[0] as a dispatch. This allows e2label to be (more) safely used
on mounted filesystems.
Theodore Ts'o [Sat, 6 Jan 2001 05:55:58 +0000 (05:55 +0000)]
Many files:
journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c, super.c,
unix.c, util.c: Fix random gcc -Wall complaints.
jfs_user.h: Use more sophisticated inline handling to allow building
with --enable-gcc-wall
Theodore Ts'o [Sat, 6 Jan 2001 04:20:03 +0000 (04:20 +0000)]
Many files:
get_device_by_label.h (get_volume_label_by_spec): Add function prototype.
get_device_by_label.c: Use string_copy() instead of strdup() for
portability's sake. Fix a few other gcc -Wall complaints.
fsck.h, fsck.c (string_copy): Export string_copy() extern.
badblocks.c: Fix various gcc -Wall complaints, including an incorrect
reference to sync in flush_bufs().
ChangeLog, configure, configure.in:
configure.in: Add checks for the header files sys/mkdev.h and
sys/sysmacros.h.
Theodore Ts'o [Sat, 6 Jan 2001 03:51:25 +0000 (03:51 +0000)]
ChangeLog, jfs.h, jfs_compat.h:
jfs.h: Move prototypes outside of the KERNEL #ifdef. Remove
indentation in front of #define.
jfs_compat.h: Add #include of netinet/in.h for htonl, and not to use
inline functions if compiling with gcc -Wall.
Theodore Ts'o [Fri, 5 Jan 2001 22:27:06 +0000 (22:27 +0000)]
ChangeLog, dirblock.c:
dirblock.c (ext2fs_read_dir_block): Fix a potential case where we may
overrun allocated memory in case of a corrupted filesystem (or an
e2fsck test case :-) when byte-swapping the directory block.