Whamcloud - gitweb
ChangeLog, bitops.h:
[tools/e2fsprogs.git] / e2fsck / ChangeLog
index 3752671..abc0253 100644 (file)
@@ -1,3 +1,298 @@
+2000-02-08    <tytso@snap.thunk.org>
+
+       * 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
                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.
+               plain file; if so, offer to unlink it.
 
        * problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code.