+2000-08-22 <tytso@valinux.com>
+
+ * super.c (release_orphan_inodes): Fix typo; should do bounds
+ checking on next_ino instead of ino.
+
+ * jfs_compat.h (J_ASSERT):
+ * journal.c (e2fsck_run_ext3_journal):
+ * pass3.c (adjust_inode_count): Use fatal_error() instead of exit().
+
+ * 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.
+
+ * util.c (fatal_error): Try to flush the I/O manager before
+ forcing an exit.
+
+2000-08-20 <tytso@valinux.com>
+
+ * 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.
+
+2000-08-18 <tytso@valinux.com>
+
+ * 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().
+
+2000-07-12 Andreas Dilger <adilger@turbolinux.com>
+
+ * 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
+
+2000-08-07 <tytso@snap.thunk.org>
+
+ * 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...)
+
+2000-07-13 <tytso@valinux.com>
+
+ * Release of E2fsprogs 1.19
+
+2000-07-06 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.
+
+2000-07-05 Theodore Ts'o <tytso@valinux.com>
+
+ * 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).
+ 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.
+
+2000-07-04 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.
+
+2000-06-10 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.
+
+2000-05-27 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.
+
+2000-05-18 Theodore Ts'o <tytso@valinux.com>
+
+ * Makefile.in (install): Create a symbolic link for fsck.ext3 as
+ well.
+
+2000-05-08 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.)
+
+2000-04-03 Theodore Ts'o <tytso@valinux.com>
+
+ * unix.c: For platforms that don't define optarg.h, manually
+ define optarg and optind.
+
+2000-03-20 Theodore Ts'o <tytso@valinux.com>
+
+ * 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.
+
+2000-02-12 <tytso@snap.thunk.org>
+
+ * unix.c (e2fsck_update_progress): Limit the number of updates to
+ the progress bars to 8 times a second. This allows a 9600
+ baud console link to keep up.
+
+2000-02-11 <tytso@snap.thunk.org>
+
+ * unix.c (main): If compression is enabled on the filesystem,
+ print a warning message (for now).
+
+ * message.c: Add new compression shortcut: @c == compress
+
+ * problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
+
+ * pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag
+ set, check to see if the filesystem supports compression.
+ If it does pass this information down to process_block()
+ so it can treat the compressed block flag words
+ correctly. If not, offer to clear the flag, since it
+ shouldn't be set.
+ (process_block): If an inode has the compressed inode flag
+ set, allow EXT2FS_COMPRESSED_BLKADDR.
+
+ * pass1b.c (process_pass1b_block, delete_file_block,
+ clone_file_block):
+ * pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to
+ see if the block can be skipped.
+
+2000-02-08 <tytso@snap.thunk.org>
+
+ * util.c: Make resource tracking message more concise.
+
+ * e2fsck.h:
+ * pass1.c (mark_table_blocks, e2fsck_pass1): Remove
+ ctx->block_illegal_map, since it's not needed by pass1,
+ and pass1b has been modified to calculate it manually if
+ needed. This reduces the memory footprint needed by e2fsck.
+
+ * pass1b.c (check_if_fs_block): New static function which returns
+ whether or not a block overlaps with filesystem metadata.
+ This replaces consulting the block_illegal_map bitmap.
+
+ * Makefile.in: Call sync after finishing building all in this
+ directory.
+
+ * unix.c (PRS): sync the filesystem before trying to use
+ BLKFLSBUF, to minimize the chance of causing dirty blocks
+ to get dropped.
+
+ * e2fsck.h: Manually define BLKFLSBUF if not defined, and we're on
+ a Linux/i386 system.
+
+ * pass3.c (check_directory): Only do the loop detection algorithm
+ if we've searched over 2048 parent directories and haven't
+ found the end yet. This means that in the common case, we
+ don't allocate or clear the inode_loop_detection bitmap,
+ which for large systems, merely clearing the bitmap for
+ each directory was turning out to be quite expensive.
+ Thanks to Jani Jaakkola (jjaakkol@cs.helsinki.fi) for
+ identifying this problem.
+
+2000-02-06 Theodore Ts'o <tytso@valinux.com>
+
+ * badblocks.c, e2fsck.h, ehandler.c, emptydir.c, extend.c,
+ flushb.c, iscan.c, message.c, pass1.c, pass1b.c, pass3.c
+ pass4.c, pass5.c, problem.c, scantest.c, swapfs.c,
+ unix.c, util.c: Add Internationalization support as
+ suggested by Marco d'Itri <md@linux.it>.
+
+2000-02-02 Theodore Ts'o <tytso@valinux.com>
+
+ * e2fsck.h, flushb.c, scantest.c: Remove uneeded include of
+ linux/fs.h
+
+2000-01-18 Theodore Ts'o <tytso@valinux.com>
+
+ * Makefile.in: Since LIBUUID can sometimes include "-lsocket"
+ we need a separate DEPLIBUUID that can be used in
+ Makefile's dependency rules.
+
+1999-11-23 <tytso@valinux.com>
+
+ * e2fsck.8.in: Update language about where to find a backup
+ superblock.
+
+1999-11-19 <tytso@valinux.com>
+
+ * pass1.c (process_inodes): Add shortcut handling; if
+ process_inodes_count is zero, return right away, to avoid
+ calling qsort with a non-positive count.
+
+ * message.c (safe_print): Fix to properly display ^A, ^B, etc. and
+ to print Delete as ^?
+
+ * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
+ the source directory.
+
+1999-11-10 <tytso@valinux.com>
+
+ * Release of E2fsprogs 1.18
+
+1999-11-10 <tytso@valinux.com>
+
+ * problem.c (fix_problem): Support a new flag, PR_PREEN_NO which
+ means the answer is assumed to be no in preen mode. This
+ is now used in the PR_1_SET_IMMUTABLE code, so that in
+ preen mode we ignore these inodes and just print a warning
+ message.
+
+1999-11-09 <tytso@valinux.com>
+
+ * pass1.c (e2fsck_pass1): If the filesystem does not support
+ imagic inodes, if an inode has the imagic flag set, offer
+ to clear the imagic flag. If a valid device/fifo/socket
+ has the immutable flag set, call the new helper function
+ check_immutable() to offerto clear the immutable flag.
+
+ * pass2.c (check_filetype): Use the new ext2_file_type() helper
+ function instead of calculating the file_type information
+ manually.
+
+ * pass3.c (e2fsck_reconnect_file): When adding a link to
+ lost+found, calculate the filetype information so that
+ ext2fs_link() can use the information if applicable.
+ (get_lost_and_found): Create the /lost+found directory
+ with the correct filetype information if applicable.
+
+ * util.c (ext2_file_type), e2fsck.h: New function which returns
+ the directory entry file type information given the
+ inode's mode bits.
+
+ * problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC
+ and PR_1_SET_IMMUTABLE.
+
+1999-11-07 <tytso@valinux.com>
+
+ * pass4.c (e2fsck_pass4): Clear inode_imagic_map after freeing it,
+ to prevent it from getting freed twice.
+
+1999-11-06 <tytso@valinux.com>
+
+ * unix.c (main): Close the filesystem before freeing the context,
+ so that in the event of a free()-related segmentation
+ violation, the filesystem is properly closed and written
+ out.
+
+1999-10-27 <tytso@valinux.com>
+
+ * e2fsck.c (e2fsck_reset_context): When freeing
+ ctx->inode_reg_map, we weren't zero'ing
+ ctx->inode_reg_map, which could cause a segfault later on
+ in the e2fsck run.
+
+1999-10-26 <tytso@valinux.com>
+
+ * problem.h (PR_2_SPLIT_DOT): Fix excess zero in problem code (now
+ matches the standard convention).
+
+1999-10-26 <tytso@valinux.com>
+
+ * Release of E2fsprogs 1.17
+
+1999-10-26 <tytso@valinux.com>
+
+ * message.c (safe_print): Make safe_print take an char instead of
+ an unsigned char to fix gcc warnings.
+
+1999-10-25 <tytso@valinux.com>
+
+ * util.c: For NT portability, don't redefine getchar(), since
+ stdio defines that. Instead we introduce a new
+ abstract macro read_a_char() which is #defined to the
+ right function as necessary.
+
+ * problem.c, problem.h (PR_2_NULL_NAME): Add new problem code.
+
+ * pass2.c (check_dir_block): Require that the length of the
+ directory entry be at least 12 bytes. Check to see if the
+ filename is zero-length, and flag that as an error.
+
+1999-10-22 <tytso@valinux.com>
+
+ * Release of E2fsprogs 1.16
+
+1999-10-22 <tytso@valinux.com>
+
+ * pass2.c (check_filetype): If the filetype filesystem feature is
+ not set, and a directory entry has a dirent feature, offer
+ to clear it (since 2.0 kernels will do complain will
+ interpret it as a very large name length field).
+
+ * problem.c (PR_2_CLEAR_FILETYPE): Add new problem code.
+
+1999-10-21 <tytso@valinux.com>
+
+ * e2fsck.8.in: Update man page to use a more standard format (bold
+ option flags and italicized variables), as suggested by
+ Andreas Dilger (adilger@enel.ucalgary.ca)
+
+ * pass4.c (e2fsck_pass4): If an inode is set in the
+ inode_imagic_map bitmap, don't check to see if it is
+ disconnected from the inode tree (because it almost
+ certainly will be). Free inode_imagic_map at the end of
+ pass 4.
+
+ * pass2.c (check_dir_block, check_filetype): If the FILETYPE
+ feature is set, check the directory entry's filetype
+ information field, and fix/set it if necessary.
+ (e2fsck_pass2): Free the inode_reg_map bitmap at the end
+ of pass 2.
+
+ * pass1.c (e2fsck_pass1, alloc_imagic_map): Allocate and fill in
+ information for inode_reg_map and inode_imagic_map, which
+ indicates which inodes are regular files and AFS inodes,
+ respectively.
+ Since only the master superblock is written during a
+ restart, force that superblock to be used after a restart;
+ otherwise changes to the block group descriptors end up
+ getting ignored.
+
+ * problem.c, problemP.h: If e2fsck is run -n, make def_yn variable
+ be 0 for "no". Add support for a new flag, PR_NO_NOMSG,
+ which supresses the problem message if e2fsck is run with
+ the -n option.
+
+ * problem.c, problem.h (PR_2_SET_FILETYPE, PR_2_BAD_FILETYPE): Add
+ new problem codes.
+
+ * message.c (expand_dirent_expression): Add support for %dt which
+ prints the dirent type information.
+
+ * e2fsck.c (e2fsck_reset_context): Free new bitmaps (inode_reg_map
+ and inode_imagic_map).
+
+ * e2fsck.h (e2fsck_t): Add new inode_reg_map and inode_magic_map
+ to the context structure.
+
+1999-09-24 <tytso@valinux.com>
+
+ * unix.c (PRS), util.c (ask_yn): Add #ifdef's to make
+ e2fsprogs easier to port to non-Unix platforms.
+
+1999-09-07 <tytso@valinux.com>
+
+ * pass3.c (adjust_inode_count): Fix bug where we didn't keep the
+ internal and external inode counts in sync when we
+ decremented an inode whose link count was already zero.
+ Now we skip incrementing or decrementing both link counts
+ if we would cause an overflow condition.
+ (expand_dir, expand_dir_proc): Change where we update the
+ inode block count and size files so that the block count
+ field is updated correctly when we create an indirect block.
+
+1999-08-05 <tytso@valinux.com>
+
+ * super.c (check_super_block): Check to see whether the
+ inodes_per_group value in the superblock is insanely too
+ high.
+
+1999-08-02 <tytso@valinux.com>
+
+ * pass1b.c (clone_file_block): Don't clear the dup_map flag if
+ the block also shares data with the fs metadata when
+ the count drops to 1, since the block should still be
+ cloned, as fs metadata isn't included in the count.
+
+1999-07-18 Theodore Ts'o <tytso@valinux.com>
+
+ * Release of E2fsprogs 1.15
+
+1999-07-19 <tytso@valinux.com>
+
+ * unix.c (usage): Add minimalist emergency help to the usage
+ message.
+
+1999-07-18 <tytso@valinux.com>
+
+ * unix.c: Add support for calculating a progress bar if the -C0
+ option is given. The function e2fsck_clear_progbar()
+ clears the progress bar and must be called before any
+ message is issued. SIGUSR1 will enable the progress bar,
+ and SIGUSR2 will disable the progress bar. This is used
+ by fsck to handle parallel filesystem checks. Also, set
+ the device_name from the filesystem label if it is
+ available.
+
+ * e2fsck.h: Add new flags E2F_FLAG_PROG_BAR and
+ E2F_FLAG_PROG_SUPRESS. Add new field in the e2fsck
+ structure which contains the last tenth of a percent
+ printed for the user.
+
+ * message.c (print_e2fsck_message): Add call to
+ e2fsck_clear_progbar().
+
+ * pass1.c (e2fsck_pass1):
+ * pass2.c (e2fsck_pass2):
+ * pass3.c (e2fsck_pass3):
+ * pass4.c (e2fsck_pass4):
+ * pass5.c (e2fsck_pass5): Add call to e2fsck_clear_progbar when
+ printing the resource tracking information.
+
+ * pass5.c (check_block_bitmaps, check_inode_bitmaps): If there is
+ an error in the bitmaps, suppress printing the progress
+ bar using the suppression flag for the remainder of the
+ check, in order to clean up the display.
+
+1999-06-30 <tytso@valinux.com>
+
+ * unix.c (check_mount): Clean up the abort message displayed when
+ the filesystem is mounted and either stdout or stdin isn't
+ a tty.
+
+1999-06-25 <tytso@valinux.com>
+
+ * e2fsck.h:
+ * pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode,
+ pass1_check_directory, e2fsck_use_inode_shortcuts): Make
+ pass1_* be private static functions, and create new
+ function e2fsck_use_inode_shortcuts which sets and clears
+ the inode shortcut functions in the fs structure.
+
+ * e2fsck.h:
+ * pass2.c (e2fsck_process_bad_inode): Make process_bad_inode() an
+ exported function.
+
+ * pass4.c (e2fsck_pass4): Call e2fsck_process_bad_inode to check
+ if a disconnected inode has any problems before
+ connecting it to /lost+found. Bug and suggested fix by
+ Pavel Machek <pavel@bug.ucw.cz>
+
+1999-06-21 <tytso@valinux.com>
+
+ * unix.c (main): Add missing space in the disk write-protected
+ message.
+
+1999-05-22 <tytso@rsts-11.mit.edu>
+
+ * problem.c, problem.h (PR_0_INODE_COUNT_WRONG): Add new problem
+ code.
+
+ * super.c (check_super_block): Add check to make sure the total
+ number of inodes is sane, since this can be calculated
+ from the number of groups times the number of inodes per
+ group. Offer to correct it if it is incorrect.
+
+1999-03-19 <tytso@rsts-11.mit.edu>
+
+ * pass5.c (check_block_end): Fix fencepost condition where when
+ clearing the block padding we were missing the last position
+ in the bitmap.
+
+1999-05-17 <tytso@rsts-11.mit.edu>
+
+ * unix.c (reserve_stdio_fds): Add safety check in case
+ reserve_stdio_fds couldn't open /dev/null.
+
+1999-03-14 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * util.c (print_resource_track): Use mallinfo if present to get
+ more accurate malloc statistics.
+
+ * pass3.c (get_lost_and_found): Check to see if lost+found is a
+ plain file; if so, offer to unlink it.
+
+ * problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code.
+
+1999-03-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * problem.c: Fix problem message for PR_1_BAD_GROUP_DESCRIPTORS so
+ that the block group number is printed. Add new prompt,
+ PROMPT_UNLINK.
+
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.14
+
+1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * message.c (safe_print): New function which prints strings,
+ converting non-printable characters using the '^' and
+ M-notation. This function is now used to print directory
+ name entries and pathnames.
+
+Mon Jan 4 02:28:59 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * unix.c (main): Reset the context before calling ext2fs_close(),
+ to avoid referencing already freed memory.
+
+1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.13
+
+1998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Makefile.in: Updated dependencies.
+
+1998-11-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass3.c (get_lost_and_found): If the filesystem is not opened
+ read-only, then force /lost+found to be created if it is
+ not present.
+
+ * problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen
+ operation.
+
+1998-10-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (main): Move ext2fs_close() after e2fsck_free_context()
+ since e2fsck_free_context may reference data in ctx->fs.
+
+ * e2fsck.c (e2fsck_reset_context): Make sure ctx->fs is non-NULL
+ before checking ctx->fs->dblist.
+
+1998-10-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c (e2fsck_pass1): Use the device check subroutine on
+ FIFO's and Socket's, so that we catch bogus immutable inodes.
+
+ * pass2.c (process_bad_inode): Process bad socket and fifo's.
+
+ * problem.h, problem.c: Define new problem codes PR_2_BAD_FIFO and
+ PR_2_BAD_SOCKET.
+
+1998-09-02 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * problem.c: Add PR_3_NO_DIRINFO error code.
+
+ * super.c (check_super_value): Rename min and max to min_val and
+ max_val to avoid possible cpp macro conflicts.
+
+ * pass4.c (e2fsck_pass4): Rename max to maxgroup, to avoid
+ possible cpp macro conflicts.
+
+ * pass3.c (e2fsck_pass3): Rename max to maxdirs, to avoid possible
+ cpp macro conflicts.
+ (check_directory): Fix logic to avoid possible core dump
+ in the case of ext2fs_get_dir_info returning NULL. (By
+ the time we get here, it should never happen, but...).
+ Also simply/streamline the control flow of the function.
+
+1998-08-17 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (check_if_skip): Move the "not cleanly mounted" check
+ ahead of the maximal mount and too long since checked tests.
+ (reserve_stdio_fds): Make sure 0,1,2 file descriptors are
+ open, so that we don't open the filesystem using the same
+ file descriptor as stdout or stderr.
+
+1998-08-01 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass2.c (e2fsck_pass2): Fix the progress accounting so that we
+ get to 100%.
+
+ * pass3.c (e2fsck_pass3): Change progress accounting to be
+ consistent with the other e2fsck passes.
+
+ * e2fsck.c (e2fsck_run): At the end of each pass, call the
+ progress function with the pass number set to zero.
+
+ * unix.c (e2fsck_update_progress): If the pass number is zero,
+ ignore the call, since that indicates that we just want to
+ deallocate any progress structures.
+
+1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Release of E2fsprogs 1.12
+
+1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (main): Fix typo in checking the incompat feature set; it
+ should be checked against EXT2_LIB_FEATURE_INCOMPAT_SUPP.
+
+1998-07-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * badblocks.c (test_disk): Don't clear the existing bad blocks
+ list when using e2fsck -c, since it may cause blocks with
+ marginal errors to be dropped from the bad blocks list.
+
+Mon Jul 6 10:32:11 1998 Theodre Ts'o <tytso@lurch.mit.edu>
+
+ * pass1.c (e2fsck_pass1): Use ext2fs_sb structure for
+ compatibility with older kernels.
+
+1998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (e2fsck_update_progress): Remove unused variables.
+
+1998-06-10 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c, problem.h: Change blkcnt_t to be e2_blkcnt_t to avoid
+ collision with LFS API.
+
+ * pass1.c (e2fsck_pass1): Fix bug so that ext2_max_sizes is
+ properly initialized.
+ (e2fsck_pass1): Don't allow the the boot loader inode to
+ be a directory (clear the inode mode field if so).
+
+1998-05-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (PRS): Added new option -C, which causes e2fsck to print
+ progress updates so that callers can keep track of the
+ completion progress of e2fsck. Designed for use by
+ progress, except for -C 0, which prints a spinning report
+ which may be useful for some users.
+
+ * pass5.c (e2fsck_pass5): Use a finer-grained progress reporting
+ scheme (useful for larger filesystems).
+
+ * e2fsck.h: Add progress_fd and progress_pos, for use by the Unix
+ progress reporting functions.
+
+1998-04-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the
+ appropriate return type for comparison functions for qsort.
+
+ * e2fsck.h: Add #ifdef protection for unistd.h
+
+ * super.c: Remove header files already included by e2fsck.h
+
+1998-04-26 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * dirinfo.c (e2fsck_add_dir_info): Update function to pass the old
+ size of the memory to be resized to ext2fs_resize_mem().
+
+1998-03-30 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Makefile.in: Change to use new installation directory variables
+ convention. Fix uninstall rules to take $(DESTDIR) into
+ account. Remove cat8dir from the installdirs target,
+ since modern man package don't necessarily put the cat
+ directory in /usr/man/cat?.
+
+1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * super.c, e2fsck.h: Always declare e2fsck_get_device_size() as an
+ extern in e2fsck.h to prevent -Wall warnings.
+
+ * pass4.c (e2fsck_pass4): Remove unused variable 'j'.
+
+1998-03-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * super.c (check_super_block): Fix broken superblock sanity check
+ when calculating blocks_per_group if s_log_frag_size !=
+ s_log_block_size. Since we don't support fragments, this
+ isn't a bug deal, but it's good to get it fixed.
+
+1998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c: Fix bug in check of feature set, to make sure we can
+ really fix this filesystem.
+
+ * problem.h: Make blkcount type to be of type blkcnt_t. Make the
+ num field be a 64 bit type. Add the problem code
+ PR_1_FEATURE_LARGE_FILES
+
+ * problem.c: Add table entry for the problem code
+ PR_1_FEATURE_LARGE_FILES.
+
+ * pass1.c (e2fsck_pass1): A non-zero i_dir_acl field is only
+ a problem for directory inodes. (Since it is also
+ i_size_high now.) If there are no large_files, then
+ clear the LARGE_FLAG feature flag. If there are
+ large_files, but the LARGE_FLAG feature flag is not set,
+ complain and offer to fix it.
+ (check_blocks): Add support to deal with non-directory
+ inodes that have i_size_high set (i.e., large_files).
+ Don't give an error if a directory has preallocated
+ blocks, to support the DIR_PREALLOC feature.
+ (process_block, process_bad_block): The blockcnt variable
+ is a type of blkcnt_t, for conversion to the new
+ block_iterate2.
+
+ * pass2.c (process_bad_inode): A non-zero i_dir_acl field is only
+ a problem for directory inodes. (Since it is also
+ i_size_high now.)
+
+ * message.c (expand_inode_expression): Print a 64-bits of the
+ inode size for non-directory inodes. (Directory inodes
+ can only use a 32-bit directory acl size, since
+ i_size_high is shared with i_dir_acl.) Add sanity check
+ so that trying to print out the directory acl on a
+ non-directory inode will print zero.
+ (expand_percent_expression): %B and %N, which print
+ pctx->blkcount and pctx->num, can now be 64 bit
+ variables. Print them using the "%lld" format if
+ EXT2_NO_64_TYPE is not defined.
+
+ * e2fsck.h: Add the large_flagsfield to the e2fsck context.
+
+ * e2fsck.c (e2fsck_reset_context): Clear the large_flags
+ field.
+
+Sun Mar 8 23:08:08 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass3.c (fix_dotdot_proc):
+ * pass2.c (check_dot, check_dotdot, check_name, check_dir_block):
+ * message.c (expand_dirent_expression): Mask off the high eight
+ bits of the directory entry's name_len field, so that it
+ can be used for other purposes.
+
+Fri Feb 27 00:01:39 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * e2fsck.c (e2fsck_run): Since E2F_FLAG_SIGNAL_MASK doesn't
+ include EXT2_FLAG_RESTART anymore, we need to adjust this
+ routine so that it *does* return in the case of it seeing
+ EXT2_FLAG_RESTART.
+
+ * pass1.c (e2fsck_pass1): ext2_get_next_inode() may call the group
+ done callback function, which may set context abort
+ flags. So we need to test the context abort flags after
+ we call ext2_get_next_inode().
+ (process_inodes): If we abort due out of process_inodes,
+ do a clean exit by breaking out of the for loop instead of
+ just returning.
+
+ * e2fsck.h (E2F_FLAG_SIGNAL_MASK): EXT2_FLAG_RESTART shouldn't be
+ considered a SIGNAL mask (i.e., requiring an immediate
+ abort of processing to restart). FLAG_RESTART just means
+ that we want to restart once pass 1 is complete.
+
+Tue Feb 24 15:19:40 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Change the progress function to return an integer; if returns 1,
+ then the progress function is expected to have set the
+ e2fsck context flag signalling a user abort, and the
+ caller should also initiate a user abort.
+
+Tue Feb 17 19:03:44 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass5.c (check_block_bitmaps, check_inode_bitmaps): Don't call
+ end_problem_latch() unless there was actually a problem
+ latched. Simplifies semantics of the latch processing.
+
+Mon Feb 16 17:31:44 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * e2fsck.h: Add new field, priv_data to the e2fsck context
+ structure. It should be used by callers of the e2fsck
+ functions only, and not by anything in e2fsck itself.
+
+Mon Feb 7 17:31:04 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * super.c: Instead of call ext2fs_get_device_size(), define and call
+ e2fsck_get_device_size(). (This function may be stubbed
+ out in special versions of e2fsck.)
+
+ * pass3.c, pass4.c: Remove extra calls to the progress function
+ that weren't needed.
+
+ * mke2fs.8.in: Update man page to note that the format of the bad
+ block file is the same as the one generated by badblocks.
+
+Sun Feb 1 07:57:14 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * dirinfo.c, e2fsck.c: Don't include com_err.h; it isn't needed.
+
+ * e2fsck.h: Include <time.h> since it is needed
+
+ * super.c: If EXT2_SKIP_UUID is defined, then skip the UUID
+ processing.
+
+Tue Jan 20 15:37:01 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (main): In the case where the filesystem revision is too
+ high, print the message about the superblock possibly
+ being corrupt.
+
+ * e2fsck.8.in: Add expanded comments about how the -b option
+ works.
+
+Sat Jan 17 13:02:16 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * e2fsck.h: If EXT2_FLAT_INCLUDES is defined, then assume all of
+ the ext2-specific header files are in a flat directory.
+
+ * dirinfo.c, ehandler.c, pass1.c, pass1b.c, pass2.c, pass5.c,
+ super.c, swapfs.c, unix.c: Explicitly cast all assignments
+ from void * to be compatible with C++.
+
+Tue Jan 6 11:30:24 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (sync_disk): Remove sync_disk and calls to that function,
+ since ext2fs_close() now takes care of this.
+
+Mon Dec 29 14:45:42 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c, pass1b.c, pass2.c, pass3.c, swapfs, badblocks.c,
+ ehandler.c, unix.c: Change use of private to be priv_data,
+ to avoid C++ reserved name clash.
+
+Fri Nov 28 09:30:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead
+ of e2fsck_get_num_dirs, which has been removed.
+
+Tue Nov 25 15:54:35 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want
+ to compile and install flushb.
+
+Mon Nov 24 06:48:00 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c (e2fsck_pass1_check_device_inode): For now, only check
+ to make sure the extra i_blocks in a device are cleared if
+ the immutable flag is set.
+
+ * util.c (print_resource_track): Fix typo which caused the
+ time/resource tracking to print "Pass 1 :" instead of
+ "Pass 1: ".
+
+Thu Nov 20 16:02:23 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass3.c (expand_directory): Fix bug which could cause core dump
+ when expanding the directory, and the bitmaps hadn't yet
+ been read in. Also, only use ext2fs_write_dir_block when
+ writing a directory block, not when writing out a fresh
+ indirect block.
+
+Wed Nov 19 16:15:44 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c (process_bad_block): Fix bug where first_block wasn't
+ getting incremented, which caused user to get a
+ "Programming error?" warning if there was a bad block in a
+ non-primary superblock/group_descriptor. Also fixed
+ another bug so that ext2fs_bg_has_super() is consulted, to
+ avoid problems when using a filesystem with the
+ sparse_groups option set and there are bad blocks at the
+ beginning of a group which doesn't have a superblock.
+
+Thu Nov 6 16:10:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the
+ progress indicator function.
+
+ * pass1.c (scan_callback): Add call to the progress feedback
+ function (if it exists).
+
+Tue Nov 4 09:45:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * super.c (check_super_block): Skip the device size check if the
+ get_device_size returns EXT2_EXT_UNIMPLEMENTED.
+
+ * iscan.c (main): Don't use fatal_error() anymore.
+
+ * pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of
+ calling fatal_error(0).
+
+ * problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT,
+ PR_3_NO_ROOT_INODE_ABORT): New problem codes.
+
+ * problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
+
+ * problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
+
+ * problemP.h: New file which separates out the private fix_problem
+ data structures.
+
+ * util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
+ swapfs.c util.c: allocate_memory() now takes a e2fsck
+ context as its first argument, and rename it to be
+ e2fsck_allocate_memory().
+
+Mon Nov 3 14:35:29 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * unix.c (main): Add a special case check for the error code EROFS
+ and display an appropriate error message for this case.
+
+ * [lots of files]: Change ext2fs_read_inode, ext2fs_write_inode
+ to take the e2fsck context as their first argument.
+ Change dir_info.c routines to take an e2fsck_context,
+ renamed them to start with e2fsck_ to avoid namespace
+ issues, and changed them to store the directory
+ information inside the e2fsck context.
+ Added e2fsck_run() which calls all of the e2fsck passes in
+ the correct order, and which handles the return of abort
+ codes. Added abort processing, both via setjmp/longjmp
+ and via flags in the e2fsck context. Use a flag in the
+ e2fsck context instead of the restart_e2fsck global
+ variable. Change uses of free and malloc to
+ ext2fs_free_mem and ext2fs_get_mem.
+
+Fri Oct 31 01:12:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass1.c, pass3.c: Rename new error codes to _ET_ in them for
+ consistency.
+
+Sat Oct 25 00:10:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * pass3.c (get_lost_and_found): Check error return of
+ EXT2_FILE_NOT_FOUND instead of ENOTDIR
+
+ * pass1.c (pass1_check_directory): Return EXT2_NO_DIRECTORY
+ instead of ENOTDIR
+
Fri Oct 24 00:12:39 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+ * unix.c (PRS): Make the variable which getopt returns into be
+ an int, so that it won't lose on platforms where char is
+ unsigned.
+
* pass1b.c (clone_file): Fix bug in error reporting in the case
where cs.errcode is non-zero.