Whamcloud - gitweb
ChangeLog, dir_iterate.c:
[tools/e2fsprogs.git] / e2fsck / ChangeLog
index 1f80af2..5894054 100644 (file)
@@ -1,3 +1,334 @@
+1999-06-21    <tytso@rsts-11.mit.edu>
+
+       * 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 fail; 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