Whamcloud - gitweb
Theodore Ts'o [Wed, 18 Oct 2000 19:22:24 +0000 (19:22 +0000)]
ChangeLog, ext2_io.h, unix_io.c:
unix_io.c: Make massive changes to support a multiple block
writethrough cacheing.
ext2_io.h: Added flags field to the io_channel structure.
Theodore Ts'o [Wed, 18 Oct 2000 19:06:13 +0000 (19:06 +0000)]
ChangeLog, random_exercise.c:
random_exercise.c: Add support for making the test files have a
certain size, and also add directories as test inodes as well.
Theodore Ts'o [Wed, 18 Oct 2000 19:03:39 +0000 (19:03 +0000)]
ChangeLog, expect.1, expect.2, image.gz:
f_journal: Make the test check for a wide variety of mixed sizes of
orphaned inodes (and not just a size of 0).
Theodore Ts'o [Tue, 12 Sep 2000 21:24:36 +0000 (21:24 +0000)]
ChangeLog, extend.c, flushb.c:
extend.c:
flushb.c: Add include of nls-enable.h which is necessary so that they
can compile correctly.
Theodore Ts'o [Tue, 12 Sep 2000 21:21:52 +0000 (21:21 +0000)]
ChangeLog, fsck.c:
fsck.c: Add base device definitions for hd[e-h], for those systems
with four IDE interfaces.
Theodore Ts'o [Mon, 11 Sep 2000 17:01:35 +0000 (17:01 +0000)]
ChangeLog, dumpe2fs.c, mke2fs.c:
mke2fs.c (zap_sector): Fix error message printed when zap_sector
fails.
dumpe2fs.c (list_desc): Fixed format string bug when printing the
inode table location in non-hex format.
Theodore Ts'o [Wed, 23 Aug 2000 04:36:25 +0000 (04:36 +0000)]
ChangeLog, util.c:
util.c (string_to_inode): Use strtoul instead of atoi, so that hex
inode numbers will be accepted.
Theodore Ts'o [Tue, 22 Aug 2000 21:50:04 +0000 (21:50 +0000)]
ChangeLog, unix.c:
unix.c (main): If we're doing a read-only check, skip the journal
playback, but don't abort the e2fsck run.
Theodore Ts'o [Tue, 22 Aug 2000 21:41:52 +0000 (21:41 +0000)]
ChangeLog, jfs_compat.h, journal.c, pass3.c:
jfs_compat.h (J_ASSERT):
journal.c (e2fsck_run_ext3_journal):
pass3.c (adjust_inode_count): Use fatal_error() instead of exit().
ChangeLog, super.c:
super.c (release_orphan_inodes): Fix typo; should do bounds checking
on next_ino instead of ino.
Theodore Ts'o [Tue, 22 Aug 2000 21:37:47 +0000 (21:37 +0000)]
ChangeLog, unix.c:
unix.c: Use fatal_error() instead of exit() whenever possible. Also
fix the fsck exit codes so that we use FSCK_USAGE when it is
appropriate. Rename global_signal_ctx to e2fsck_global_ctx and let it
be exported globally.
Theodore Ts'o [Tue, 22 Aug 2000 21:30:11 +0000 (21:30 +0000)]
ChangeLog, util.c:
util.c (fatal_error): Try to flush the I/O manager before forcing an
exit.
Theodore Ts'o [Mon, 21 Aug 2000 03:39:49 +0000 (03:39 +0000)]
RELEASE-NOTES:
Fixed nit-picking grammar errors.
Theodore Ts'o [Mon, 21 Aug 2000 01:23:39 +0000 (01:23 +0000)]
RELEASE-NOTES:
Updated for WIP release.
Theodore Ts'o [Sun, 20 Aug 2000 22:13:23 +0000 (22:13 +0000)]
version.h:
Update for WIP release.
Theodore Ts'o [Sun, 20 Aug 2000 22:06:31 +0000 (22:06 +0000)]
ChangeLog, journal.c, message.c, problem.c, problem.h, super.c:
journal.c (e2fsck_journal_load): Fix **nasty** bug which caused
e2fsck_check_ext3_journal to smash the journal because
journal->j_transaction_sequence wasn't getting initialized.
journal.c: (recover_ext3_journal, e2fsck_run_ext3_journal): Move call
to e2fsck_clear_recover from recover_ext3_journal to after the
filesystem has been closed and reopened. Otherwise, the superblock in
the filesystem handle will probably be stale, and will overwrite the
newer version of the superblock written by the log recovery.
message.c (expand_inode_expression): Add support for %Iu and %Ig
problem.h (PR_0_CLEAR_ORPHAN_INODE): Add new problem code.
super.c (release_orphan_inodes, release_inode_block,
release_inode_blocks): Update the block group descriptor counts when
freeing the orphan inode. Use PR_0_CLEAR_ORPHAN_INODE to report when
we clear an orphan.
journal.c (e2fsck_run_ext3_journal): Fix a bug where we attempted to
reopen the filesystem using the device name instead of the filesystem
name.
Theodore Ts'o [Sun, 20 Aug 2000 21:51:24 +0000 (21:51 +0000)]
finddev.c:
Fix stupid bug in finddev.c which could cause things to loop if the
stat call failed.
Theodore Ts'o [Sun, 20 Aug 2000 21:48:45 +0000 (21:48 +0000)]
ChangeLog, hold_inode.c, random_exercise.c:
random_exercise.c: New file which feeds a lot of file creations and
deletions (while leaving the file descriptor open, and then closing
the file descriptor later). This generates lots of fodder for the
orphan list code, as well as for the ext3 journal.
hold_inode.c: New file which holds an inode or a directory open (for
testing orphan list code).
ChangeLog, run_e2fsck, expect.1, expect.2, image.gz, name, expect:
run_e2fsck: Filter out JFS DEBUG messages when comparing e2fsck output.
f_journal: New test case which checks out running the ext3 journal.
f_orphan: New test case which checks clearing the list of orphan
inodes (files and directories).
f_swapfs/expect: Update to reflect new debugfs format for dumping the
blocks of an inode.
Theodore Ts'o [Sun, 20 Aug 2000 19:11:05 +0000 (19:11 +0000)]
ChangeLog, Makefile.in, get_device_by_label.c:
get_device_by_label.c: Add call to ext2fs_find_block_device if we
can't find the device using the name given by /proc/partitions. (This
can happen if devfs is compiled into the kernel, but not mounted.)
Theodore Ts'o [Sat, 19 Aug 2000 17:33:28 +0000 (17:33 +0000)]
debugfs.c:
Fixup one more missing use of lb->f instead stdout when printing the
comma separator.
ChangeLog, util.c:
util.c (open_pager): Set SIGPIPE to be ignored, so that quitting out
of the pager doesn't blow away debugfs.
Theodore Ts'o [Sat, 19 Aug 2000 17:00:47 +0000 (17:00 +0000)]
ChangeLog, Makefile.in, ext2fs.h, finddev.c:
finddev.c, ext2fs.h, Makefile.in: Add new file, finddev.c, which
provides the function ext2fs_find_block_device(). This function
returns the pathname to a block device, given its device number.
Theodore Ts'o [Fri, 18 Aug 2000 15:31:37 +0000 (15:31 +0000)]
super.c:
Remember to clear the orphaned inode list before starting to process it.
Theodore Ts'o [Fri, 18 Aug 2000 15:08:37 +0000 (15:08 +0000)]
Many files:
Makefile.in: Update the make dependencies
problem.c, problem.h: Add the problem codes:
PR_0_ORPHAN_ILLEGAL_BLOCK_NUM, PR_0_ORPHAN_ALREADY_CLEARED_BLOCK,
PR_0_ORPHAN_ILLEGAL_HEAD_INODE, PR_0_ORPHAN_ILLEGAL_INODE,
PR_0_ORPHAN_INODE_INUSE
super.c (release_inode_blocks, release_orphan_inodes,
check_super_block): Add support for clearing orphaned inodes from the
unmounted filesystem.
journal.c (e2fsck_recover_ext3_journal): Remove the last orphan check;
this is now handled in check_super_block --- non-journaled filesystems
can use the orphan list in the future. Also, move the the re-opening
of the filesystem to e2fsck_run_ext3_journal().
debugfs.c:
debugfs.c (finish_range): Make sure the pager FILE pointer to use.
configure, configure.in, ChangeLog:
configure.in (JFS_DEBUG): Add support for --enable-jfs-debug
Theodore Ts'o [Mon, 14 Aug 2000 20:39:17 +0000 (20:39 +0000)]
ChangeLog, debugfs.c:
debugfs.c (do_show_super_stats): Use list_super2() instead of using
explicit printf statements. (We get a more complete printout this
way.)
Theodore Ts'o [Mon, 14 Aug 2000 20:37:09 +0000 (20:37 +0000)]
Makefile.in, debug_cmds.ct, setsuper.c, ChangeLog:
setsuper.c: New function which implements the set_super_value command.
Allows the user to set arbitrary superblock fields.
ChangeLog, util.c:
util.c (open_pager): If the PAGER environment variable is not set,
default to using "more".
Theodore Ts'o [Mon, 14 Aug 2000 20:13:32 +0000 (20:13 +0000)]
ChangeLog, e2p.h, ls.c:
ls.c (list_super, list_super2): Added new API function which takes a
FILE * so that the output can be redirected to a stream.
Theodore Ts'o [Mon, 14 Aug 2000 17:06:05 +0000 (17:06 +0000)]
ChangeLog, debugfs.c:
debugfs.c (dump_inode): Cap the length when printing a fast symbolic
link to inode.i_size.
(list_blocks_proc): Print block ranges (4510-4533) to make the stat
output easier to read.
Theodore Ts'o [Mon, 14 Aug 2000 15:47:15 +0000 (15:47 +0000)]
ChangeLog, debugfs.c:
debugfs.c (list_blocks_proc): show relative inode block numbers and/or
indirect block status
Theodore Ts'o [Mon, 14 Aug 2000 15:32:11 +0000 (15:32 +0000)]
ChangeLog, dumpe2fs.8.in, dumpe2fs.c, mke2fs.c:
dumpe2fs.c (usage): add fhx options to usage message, add -x option to
print out the per-group block numbers in hex, add line for location of
primary/backup superblock and group descriptors
mke2fs.c: rename max to group_blk_max avoid potential macro conflict
Theodore Ts'o [Mon, 14 Aug 2000 14:47:51 +0000 (14:47 +0000)]
ChangeLog, e2fsprogs.spec:
e2fsprogs.spec (Summary): Add description of resize2fs to the package
summary.
POTFILES.in:
Add recover.c and journal.c to the list of files that need
internationalization processing.
Theodore Ts'o [Mon, 14 Aug 2000 14:44:15 +0000 (14:44 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (zap_sector): Change zap_bootsect to more general zap_sect.
(main): Clear the superblock when starting mke2fs, to avoid leaving
the filesystem in an inconsistent state.
Theodore Ts'o [Mon, 14 Aug 2000 14:37:37 +0000 (14:37 +0000)]
ChangeLog, ls.c:
ls.c (list_super): Use better description of s_last_orphan
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Add comment explaining when journal fields are valid.
Theodore Ts'o [Mon, 14 Aug 2000 14:30:50 +0000 (14:30 +0000)]
ChangeLog, configure, configure.in:
configure.in: Add test for sys/mount.h (required for e2fsck's ext3
recovery code)
Theodore Ts'o [Mon, 14 Aug 2000 14:25:19 +0000 (14:25 +0000)]
Many files:
journal.c: implement loading of ext3 journal for recovery code
problem.c (fix_problem): return answer from PR_AFTER_CODE to caller.
Add journal problems.
recovery.c (journal_recover): user-space ext3 journal recovery code
unix.c (main) : check journal and do recovery in separate steps
jfs.h, recovery.c: Files ext3 kernel code.
jfs_compat.h: Compatibility header file to allow kernel code to be
linked to e2fsck.
Theodore Ts'o [Tue, 8 Aug 2000 03:17:04 +0000 (03:17 +0000)]
ChangeLog, unix.c:
unix.c (calc_percent): Make sure that we don't take a floating
exception if the max value is zero. (should normally never happen,
but...)
Theodore Ts'o [Thu, 27 Jul 2000 21:06:07 +0000 (21:06 +0000)]
COPYING:
Update Copying statement to the latest.
Theodore Ts'o [Thu, 27 Jul 2000 02:45:55 +0000 (02:45 +0000)]
ChangeLog, get_device_by_label.c:
get_device_by_label.c: Improve /proc/partitions parsing in fsck, and
speed up fsck -a.
Theodore Ts'o [Thu, 27 Jul 2000 01:39:23 +0000 (01:39 +0000)]
RELEASE-NOTES:
Update timestamp of release notes.
Theodore Ts'o [Thu, 13 Jul 2000 23:52:45 +0000 (23:52 +0000)]
ADD TAG: E2FSPROGS-1_19
Theodore Ts'o [Thu, 13 Jul 2000 23:52:45 +0000 (23:52 +0000)]
e2fsprogs.lsm:
Commit for e2fsprogs 1.19 release.
Theodore Ts'o [Thu, 13 Jul 2000 23:25:54 +0000 (23:25 +0000)]
configure.in:
Commit this file for future use; contains a configure.in script for when
libuuid gets separtead out into its own package.
libext2fs.texinfo:
Update version numbers for 1.19 release.
TODO:
Commit TODO list for 1.19 release.
README:
Update file for 1.19 release.
ChangeLog, e2fsprogs.spec:
e2fsprogs.spec: Merge in a few changes from the Red Hat 6.2 spec file,
now that we're using a modern rpm to build e2fsprogs. Also updated
version number to 1.19.
version.h:
Update version number for 1.19 release.
ChangeLog:
Check in changes for 1.19 release.
Theodore Ts'o [Thu, 13 Jul 2000 23:17:17 +0000 (23:17 +0000)]
e2fsprogs.pot:
Add this file to the release, so that translators can easily get their hands
on the template file.
.cvsignore:
Remove e2fsprogs.pot from ignore list.
it.po, nyc.po:
Update .po files for 1.19 release.
Theodore Ts'o [Thu, 13 Jul 2000 22:05:31 +0000 (22:05 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Added text explaining that the -n and -w options are
mutually exclusive.
badblocks.c (usage): Fix usage message to make it clear that the block
count must be specified if the starting block is to be specified.
(The starting block should be a option, in the long run.)
badblocks.c (test_nd): Save and restore the currently_testing variable
before going into the write verification loop. This avoids a loop
termination problem if the last block on the disk is bad. Also, turn
off the SIGALRM signal while restoring blocks after the user types ^C.
The num_saved variable is now static so that it won't get clobbered by
a longjmp. buf_used and bb_count are no longer static, since they
aren't used by the cleanup routines anymore.
badblocks.c (main): Removed an unsued varaible (buf_size). Fixed bad
getopt argument that didn't allow the 'b' option to take an argument.
Added error checking when parsing the starting block number. Fixed
lint warning in fscanf format string.
Theodore Ts'o [Fri, 7 Jul 2000 04:37:35 +0000 (04:37 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h (EXT2_LIB_FEATURE_INCOMPAT_SUPP): Add
EXT3_FEATURE_INCOMPAT_RECOVER (aka needs_recovery) to the list of
filesystem flags supported by the library.
ChangeLog, e2fsprogs.spec:
e2fsprogs.spec (%post): Remove resize2fs from its old location in
/usr/sbin in the postinstall script.
RELEASE-NOTES, version.h:
Update for WIP release.
Theodore Ts'o [Fri, 7 Jul 2000 04:31:55 +0000 (04:31 +0000)]
ChangeLog, Makefile.in:
Makefile.in (uuid_time): Fix compilation rule so that uuid_time.o
doesn't get bashed in order to build the command-line version of
uuid_time.
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Update ext3 extension feature #define's.
Theodore Ts'o [Fri, 7 Jul 2000 04:13:21 +0000 (04:13 +0000)]
ChangeLog, Makefile.in, e2fsck.h, journal.c, unix.c:
unix.c (check_if_skip): Modify algorithm for checking s_max_mnt_count
to match with the kernel. (If s_max_mnt_count is negative, ignore the
mnt_count check.)
unix.c (e2fsck_update_progress): Adjust the width of the progress bar
dynamically, based on the filesystem name that we need to display.
unix.c (main): If the ext3 needs_recovery flag is set, call
e2fsck_run_ext3_journal() and then restart the e2fsck run.
journal.c (e2fsck_run_ext3_journal): New file which contains logic to
recover the ext3 journal. This version relies on the kernel being
able to mount the filesystem in order to run the journal.
Theodore Ts'o [Fri, 7 Jul 2000 03:25:13 +0000 (03:25 +0000)]
ChangeLog, fsck.c:
fsck.c (execute, wait_one): Treat fsck.ext3 the same as fsck.ext2
(because they are the same) for the purposes of the progress bar
display logic.
ChangeLog, ls.c:
ls.c (list_super): Display the journal information fields in the
superblock if the filesystem has a journal.
Theodore Ts'o [Fri, 7 Jul 2000 03:12:54 +0000 (03:12 +0000)]
ChangeLog, tune2fs.8.in, tune2fs.c:
tune2fs.8.in: Update manual page to document what happens if
max_mount_count is negative.
tune2fs.c (main): Allow setting the maximal count value to be
negative, since the kernel interprets that as forcing a check.
Theodore Ts'o [Thu, 6 Jul 2000 14:16:08 +0000 (14:16 +0000)]
ChangeLog, fsck.c:
fsck.c (lookup, load_fs_info, check_all): Use lazy evaluation for
calling interpret_device(), since this requires root privileges if the
partitions need to be scanned. Otherwise, it's not possible to do
non-proot fsck's for removeable devices such as floppies if there are
any LABEL= or UUID= entries in /etc/fstab.
Theodore Ts'o [Thu, 6 Jul 2000 14:13:29 +0000 (14:13 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.c (check_mount, main): Check to see if the filesystem is
mounted before doing a read/write or non-destructive test. This can
be overriden using the new -f option.
badblocks.8.in: Added documentation for the -f option.
Theodore Ts'o [Thu, 6 Jul 2000 13:19:43 +0000 (13:19 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Update manual page to reflect that the blocks-count
parameter is now optional. Also properly document the start-block
parameter.
badblocks.c (main): Allow the blocks-count parameter to be optional.
If it's not specified, use the size of the device as a default.
Theodore Ts'o [Thu, 6 Jul 2000 00:31:27 +0000 (00:31 +0000)]
ChangeLog, badblocks.c:
badblocks.c (test_nd): Significantly simplify the logic so that it's
more obviously what's going on. Fixed a few potential cases which
weren't handled correctly in the old, overly complicated logic.
(flush_bufs): Now doesn't take a second argument, and always forces a
sync; this is required before it's really safe to call BLKFLSBUF, at
least for some kernels.
Theodore Ts'o [Wed, 5 Jul 2000 23:54:46 +0000 (23:54 +0000)]
ChangeLog, Makefile.in:
Makefile.in (install): Install resize2fs in /sbin, not /usr/sbin.
ChangeLog, unix.c:
unix.c: Also, re-arrange the logic so that we do the time check only
after doing the percentage check, and we only advance the spinner if
we're about to display it.
ChangeLog:
Fix minor wording error in Chagelog.
Theodore Ts'o [Wed, 5 Jul 2000 18:25:59 +0000 (18:25 +0000)]
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Only save and check the last
percentage after multiplying it by 10, nor 1000, since we only need to
save values to a tenth of a percent (and the percentage is already
from 0 .. 100%, not 0 .. 1).
Theodore Ts'o [Wed, 5 Jul 2000 17:48:34 +0000 (17:48 +0000)]
ChangeLog, debugfs.c:
debugfs.c (dump_inode): Make the generation field be printed as an
unsigned integer.
Theodore Ts'o [Wed, 5 Jul 2000 15:42:23 +0000 (15:42 +0000)]
ChangeLog, config.guess, config.sub:
config.guess, config.sub: Update to use latest version from FSF (2000-06-13)
Theodore Ts'o [Tue, 4 Jul 2000 19:51:22 +0000 (19:51 +0000)]
ChangeLog, pass1.c:
pass1.c (e2fsck_pass1): Check to see if the ext3 s_last_orphan field
is set; if so, clear it, so that ext3 mounting code won't get confused
by the fact that we've cleared out the orphaned inodes.
Theodore Ts'o [Tue, 4 Jul 2000 19:41:29 +0000 (19:41 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: Update to include latest journalling additions to the superblock.
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Update to include latest journalling additions to the
superblock.
Theodore Ts'o [Tue, 4 Jul 2000 19:20:25 +0000 (19:20 +0000)]
Many files:
tst_badblocks.c: Update test program to test ext2fs_read_bb_FILE2 and
ext2fs_write_FILE.
write_bb_file.c (ext2fs_write_bb_FILE): New function which writes out
bad blocks list to a file.
read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which changes
the callback function to take two additional arguments; a private
blind pointer supplied by the caller, and pointer to a char *
containing a pointer to the invalid string.
badblocks.c (ext2fs_badblocks_equal): Add new function which returns
true if two badblocks list are equal.
Makefile.in: Remove explicit link of -lc in the shared library. (It
shouldn't be necessary, and is harmful in some cases).
jump.funcs:
dll/jump.funcs: Add new jumptable entries for ext2fs_write_bb_FILE,
ext2fs_read_bb_FILE2, and ext2fs_badblocks_equal.
Theodore Ts'o [Tue, 4 Jul 2000 18:51:20 +0000 (18:51 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Remove explicit link of -lc in the shared library. (It
shouldn't be necessary, and is harmful in some cases).
Theodore Ts'o [Tue, 4 Jul 2000 12:37:55 +0000 (12:37 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the mk_cmds
support files from the source tree.
.cvsignore:
Add std_rqs.c to the ignore list.
Theodore Ts'o [Tue, 4 Jul 2000 12:34:34 +0000 (12:34 +0000)]
ChangeLog, Makefile.in, ct_c.awk, mk_cmds.sh.in:
ct_c.awk: Work around a bug in gawk 3.05
mk_cmds.sh.in: Allow the build system to override the standard
location for finding the ct_c.* files by setting the _SS_DIR_OVERRIDE
environment variable.
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the version in
the source tree.
ChangeLog, Makefile.in:
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
mk_cmds support files from the source tree.
Theodore Ts'o [Mon, 12 Jun 2000 22:40:09 +0000 (22:40 +0000)]
POTFILES.in, it.po, nyc.po:
Update to include resize2fs files.
Theodore Ts'o [Mon, 12 Jun 2000 22:06:16 +0000 (22:06 +0000)]
ChangeLog, extent.c, main.c, resize2fs.c, resize2fs.h:
main.c, resize2fs.c, resize2fs.h, extent.c: Add NLS support.
Theodore Ts'o [Mon, 12 Jun 2000 17:35:13 +0000 (17:35 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_random_bytes): Use O_NONBLOCK when trying to open
/dev/random. Break out the /dev/random initialization code into a
get_random_fd() function, and use that function in uuid_generate() to
determine whether to use uuid_generate_random() or
uuid_generate_time().
Theodore Ts'o [Mon, 12 Jun 2000 16:45:30 +0000 (16:45 +0000)]
badblocks.8.in:
Update man page explanation for badblocks.
Update man page's explanation for the -c option.
Theodore Ts'o [Sat, 10 Jun 2000 19:27:17 +0000 (19:27 +0000)]
ChangeLog, getsize.c:
getsize.c (main): Add debugging code under #ifdef DEBUG
Theodore Ts'o [Sat, 10 Jun 2000 19:21:33 +0000 (19:21 +0000)]
ChangeLog, pass5.c, problem.c, problem.h:
pass5.c (check_block_bitmaps, check_inode_bitmaps): Add error checking
for a "should never happen case".
problem.c, problem.h (PR_5_COPY_IBITMAP_ERROR,
PR_5_COPY_BBITMAP_ERROR): Add new error codes.
Theodore Ts'o [Sat, 10 Jun 2000 15:20:41 +0000 (15:20 +0000)]
lsdel.c:
Fix missed call to ext2fs_get_next_inode() to check for
EXT2_ET_BAD_BLOCK_INODE.
Theodore Ts'o [Fri, 9 Jun 2000 04:24:36 +0000 (04:24 +0000)]
ChangeLog, lsdel.c:
Handle bad blocks in inode table.
Theodore Ts'o [Mon, 29 May 2000 15:05:42 +0000 (15:05 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (PRS): Add a much more specific error message if the
filesystem size is defaulted and get_device_size returns a size of
zero. Otherwise, users get a confusing "invalid argument while passed
to ext2 library" error message.
Theodore Ts'o [Sat, 27 May 2000 16:04:00 +0000 (16:04 +0000)]
Makefile.in:
Fix stupid dependency bug.
ChangeLog, debugfs.c, debugfs.h, util.c:
debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
coredumping if the bitmaps aren't loaded.
util.c (check_fs_bitmaps): New function which checks whether or not
the bitmaps are loaded.
Theodore Ts'o [Sat, 27 May 2000 15:18:02 +0000 (15:18 +0000)]
Makefile.in:
Add another dependency hack to allow parallel makes to work correctly.
Theodore Ts'o [Sat, 27 May 2000 15:15:40 +0000 (15:15 +0000)]
ChangeLog, debug_cmds.ct, debugfs.8.in, debugfs.c, dump.c, ls.c:
debugfs.8.in: Documented new behaviour.
ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for recent
files. Switched to 4-digit years.
dump.c, debug_cmds.ct (do_rdump): Add new debugfs command "rdump",
which recursively dumps a directory and its contents.
(fix_perms): New function. Break permission-fixing code out of
dump_file() so it can be called by rdump code as well.
(dump_file): Call fix_perms().
debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command "lcd",
which changes the cwd on the native filesystem.
debugfs.c (open_filesystem): Extra args for superblock, blocksize, and
catastrophic mode. Changed callers.
(do_open_filesys, main): Accept new -b, -s, -c options for
open_filesystem.
ChangeLog, mkdir.c:
mkdir.c (ext2fs_mkdir): Read the parent directory's inode earlier, so
that if there's an error reading it, we can more cleanly back out of
the operation.
version.h:
Update version file for WIP release.
Theodore Ts'o [Sat, 27 May 2000 14:40:09 +0000 (14:40 +0000)]
ChangeLog, pass1.c, problem.c, problem.h:
pass1.c (pass1, check_size): Apply patch from Chris Wedgewood
(cw@foof.org) which checks to see if special devices have a non-zero
size, and deals with it.
problem.c, problem.h (PR1_SET_NONZSIZE): Add new problem code.
Theodore Ts'o [Thu, 25 May 2000 23:46:39 +0000 (23:46 +0000)]
Many files:
Remove generated file.
Theodore Ts'o [Thu, 25 May 2000 23:42:22 +0000 (23:42 +0000)]
ChangeLog, getsize.c:
getsize.c: Under linux, manually define the ioctl for BLKGETSIZE if it
isn't already defined and it's safe to do so.
.cvsignore:
Ignore build files when builddir==srcdir
Theodore Ts'o [Thu, 25 May 2000 23:31:54 +0000 (23:31 +0000)]
ChangeLog, getsize.c, llseek.c, unix_io.c:
getsize.c (ext2fs_get_device_size): Use open64() instead of open() if
it exists.
unix_io.c (unix_open): Use open64() instead of open() if it exists.
llseek.c: Simplify header includes of unistd.h. If lseek64 is
available (and prototypes are defined) use it in preference to llseek.
Theodore Ts'o [Thu, 25 May 2000 23:28:50 +0000 (23:28 +0000)]
ChangeLog, configure, configure.in:
Add test for lseek64 and open64
ChangeLog, Makefile.in:
Makefile.in: Fix makefile so that it's safe to build in parallel.
Theodore Ts'o [Thu, 25 May 2000 23:22:11 +0000 (23:22 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Add hack dependency rule so that parallel makes work
correctly.
Theodore Ts'o [Thu, 25 May 2000 23:19:08 +0000 (23:19 +0000)]
.cvsignore:
Supress build files when builddir==srcdir
Theodore Ts'o [Thu, 25 May 2000 16:43:00 +0000 (16:43 +0000)]
ChangeLog, configure, configure.in:
configure.in (DO_SUBSTITUTE_SCRIPT): Remove unneeded substitution.
(Left over from before we moved to use a C program to do
substitutions.)
Theodore Ts'o [Thu, 25 May 2000 16:40:54 +0000 (16:40 +0000)]
ChangeLog, test_script.in:
test_script.in: Ignore files in the test directory (to avoid spurious
messages when builddir==srcdir).
Theodore Ts'o [Fri, 19 May 2000 02:38:14 +0000 (02:38 +0000)]
ChangeLog, Makefile.in:
Makefile.in (install): Create a symbolic link for fsck.ext3 as well.
ChangeLog, e2fsprogs.spec:
e2fsprogs.spec (fsck.ext3): Add /sbin/fsck.ext3 to the spec file.
Theodore Ts'o [Fri, 19 May 2000 02:11:41 +0000 (02:11 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: Add appropriate ifdef's to support C++ compilation.
Theodore Ts'o [Mon, 8 May 2000 14:47:15 +0000 (14:47 +0000)]
ChangeLog, fsck.c:
fsck.c (interpret_device): Add better error messages if a UUID= or
LABEL= specification is given.
Theodore Ts'o [Mon, 8 May 2000 13:33:17 +0000 (13:33 +0000)]
ChangeLog, problem.c, problem.h, super.c:
problem.c, problem.h (PR_0_HURD_CLEAR_FILETYPE): Add new problem code.
super.c (check_super_block): If the OS type in the superblock is the
Hurd, check to see if the filetype feature is set, and offer to clear
it if so. This needs to be done since the Hurd doesn't properly
support the filetype feature. (And since the hurd allows the
transmogrification of files to special files and vice versa --- for no
good reason that I can understand --- it can't support the filetype
feature for the forseeable future, either.)
ChangeLog, mke2fs.c:
mke2fs.c (main): We forcibly turn off the filetype feature if the OS
is the hurd, since the hurd doesn't support it. (And since the hurd
allows the transmogrification of files to special files and vice versa
--- for no good reason that I can understand --- it can't support the
filetype feature for the forseeable future, either.)
mke2fs.c (proceed_question): Fix reversed sense of proceed_question
that was busted due to the internationalization patch. Fixed bug
where if proceed_question was called twice, the input buffer wasn't
cleared of the previous question's newline.
ChangeLog, expect.1, expect.2, image.gz, name:
f_hurd: Add test for Hurd-specific features (right now, just checks to
make sure the filetype feature is cleared)
ChangeLog, ls.c:
ls.c (list_super): Change the string displayed for the Hurd to be
GNU/Hurd, instead of just "GNU".
Theodore Ts'o [Fri, 7 Apr 2000 20:06:04 +0000 (20:06 +0000)]
Many files:
clear.c, compare.c, copy.c, gen_uuid.c, isnull.c, pack.c, parse.c,
uuid.h, uuidP.h: Changed copyright to be the LGPL.
Theodore Ts'o [Thu, 6 Apr 2000 23:05:32 +0000 (23:05 +0000)]
ChangeLog:
Makefile.in (source_tar_file): Remove the resize directory from the
list of excluded files.
version.h: Update version header for an WIP release.
e2fsprogs.spec, ChangeLog:
e2fsprogs.spec: Updated for 1.19 release; added resize2fs.
ChangeLog, expect.1:
f_filetype: Updated expect script to match with new text for
immutable/append-only files.
TODO:
Update TODO file.
Theodore Ts'o [Thu, 6 Apr 2000 21:51:18 +0000 (21:51 +0000)]
ChangeLog, Makefile.in, jump.funcs, jump.import, jump.params:
Makefile.in (uuid_time): Compile uuid_time in two steps (first create
.o, then link it against the libraries) to work around bug in a.out
linker.
dll/jump.funcs, dll/jump.import, dll/jump.params: Update a.out shared
library control files to reflect new added files.
ChangeLog, feature.c, jump.funcs:
feature.c: Make feature_list static; it shouldn't be exported.
dll/jump.funcs: Update a.out shared library control file.
ChangeLog, badblocks.c:
badblocks.c (flush_bufs): Use fsync() if the system doesn't support
fdatasync().
Theodore Ts'o [Thu, 6 Apr 2000 21:44:19 +0000 (21:44 +0000)]
configure.in, ChangeLog:
configure.in (fdatasync): Add test for fdatasync(), since not all
functions have this function.
Theodore Ts'o [Thu, 6 Apr 2000 21:38:34 +0000 (21:38 +0000)]
Many files:
Update copyright of files in preparation for release of resize2fs.
Also removed the (obsolete) beta-test check that had been in the code,
as well as the old spec files used to package the separate
distribution of resize2fs.
Makefile.in: No longer build resize2fs.static, since there's no real
point in it any more.
Modified Files:
ChangeLog Makefile.in extent.c main.c resize2fs.8.in
resize2fs.c resize2fs.h sim_progress.c test_extent.c
Removed Files:
e2fsprogs-1.12.spec pq.gif resize2fs.spec version.h
Theodore Ts'o [Thu, 6 Apr 2000 21:20:23 +0000 (21:20 +0000)]
Makefile.in, version.h:
Makefile.in (source_tar_file): Remove the resize directory from the
list of excluded files.
version.h: Update version header for an WIP release.
Theodore Ts'o [Thu, 6 Apr 2000 20:57:26 +0000 (20:57 +0000)]
configure:
configure.in (fdatasync): Add test for fdatasync(), since not all
functions have this function.
Theodore Ts'o [Mon, 3 Apr 2000 16:51:06 +0000 (16:51 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_clock): Fix bug where the last timeval wasn't getting
set, causing potentially duplicate UUID's to be generated.
Theodore Ts'o [Mon, 3 Apr 2000 16:22:35 +0000 (16:22 +0000)]
Many files:
badblocks.c, dumpe2fs.c, e2label.c, mke2fs.c, tune2fs.c, uuidgen.c:
For platforms that don't define optarg.h, manually define optarg and
optind.
ChangeLog, main.c:
main.c: For platforms that don't define optarg.h, manually define
optarg and optind.
ChangeLog, unix.c:
unix.c: For platforms that don't define optarg.h, manually define
optarg and optind.
Theodore Ts'o [Mon, 3 Apr 2000 16:16:46 +0000 (16:16 +0000)]
ChangeLog, subst.c:
subst.c: For platforms that don't define optarg.h, manually define
optarg and optind.
Theodore Ts'o [Mon, 3 Apr 2000 16:01:11 +0000 (16:01 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Updated manual page with suggestions from David
Beattie.
badblocks.c (test_nd): Generalized cleanup and bug-fixes. We now
explicitly clear out the signal handlers to prevent a longjmp to a
deactivated stack frame.
(test_rw): Fixed a signed vs. unsigned comparison error.
Theodore Ts'o [Mon, 3 Apr 2000 13:57:21 +0000 (13:57 +0000)]
ChangeLog, pass1.c, problem.c:
pass1.c (check_immutable, e2fsck_pass1_check_device_inode): Check for
the append-only as well as the immutable flag.
problem.c (PR_1_SET_IMMUTABLE): Adjust message to include append-only
flag. Fix comment for compression flag.
Theodore Ts'o [Mon, 3 Apr 2000 13:51:00 +0000 (13:51 +0000)]
ChangeLog, block.c:
block.c: Readibility tweak in conditionals involving ctx->fs->flags.
Theodore Ts'o [Mon, 3 Apr 2000 13:48:52 +0000 (13:48 +0000)]
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h (EXT2_NOCOMPR_FL): Rename EXT2_NOCOMP_FL to EXT2_NOCOMPR_FL.
ChangeLog, Makefile.in, pf.c:
pf.c (print_flags): Rename EXT2_NOCOMP_FL to EXT2_NOCOMPR_FL.
Makefile.in: Add "set -e" so that any errors in installing header
files causes an immediate exit.