1. 08 Sep, 2009 1 commit
  2. 05 Aug, 2009 1 commit
  3. 01 Jun, 2009 1 commit
  4. 22 Apr, 2009 1 commit
  5. 22 Jan, 2009 1 commit
    • Theodore Ts'o's avatar
      libext2fs: Add sanity checks to ext2fs_{block,inode}_alloc_stats · cf4e06d6
      Theodore Ts'o authored
      
      If ext2fs_inode_alloc_stats2() or ext2fs_block_alloc_stats() is passed
      an insanely large inode or block number, it's possible for these
      functions to overrun an array boundary and cause the calling program
      to crash with a memory error.
      
      Detect this case, and since these functions don't return an error
      code, print a warning message, much like we do in ext2fs_warn_bitmap2().
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      cf4e06d6
  6. 28 Aug, 2008 1 commit
  7. 02 Jun, 2008 1 commit
  8. 21 Apr, 2008 1 commit
    • Theodore Ts'o's avatar
      Transfer responsibility of setting the *_UNINIT flags to libext2fs · 5711ed29
      Theodore Ts'o authored
      
      Mke2fs used to have special case, ugly code in
      setup_lazy_bg/setup_uninit_bg flag which set the flags based on all
      sorts of special cases.  Change it so that it is done in libext2fs,
      and fix mke2fs to use alloc_stats functions which will take care of
      clearing the *_UNINIT flags automatically as needed.
      
      This is preparatory work to make the flex_bg allocation patch much
      cleaner.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      5711ed29
  9. 20 Mar, 2008 1 commit
  10. 03 Feb, 2002 1 commit
  11. 03 Jan, 2002 1 commit
    • Theodore Ts'o's avatar
      dir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block): · 8bd0c959
      Theodore Ts'o authored
      	Add support for a new flag, DIRENT_FLAG_INCLUDE_REMOVED,
      	which will return deleted directory entries.
      	ext2fs_dir_iterate2 takes a new callback function which
      	is identical with the one used by
      	ext2fs_dblist_dir_iterate().  If the directory entry is
      	deleted, the callback function will be called with the
      	entry paraemter set to DIRENT_DELETED_FILE.
      
      Makefile.in, alloc_stats.c (ext2fs_inode_alloc_stats,
      	ext2fs_block_alloc_stats): New functions which update
      	block/inode allocation statistics in the bitmaps, block
      	group descriptors, and superblock.
      
      mkjournal.c (mkjournal_proc), mkdir.c (ext2fs_mkdir),
      expanddir.c (expand_dir_proc), bb_inode.c
      	(clear_bad_block_proc, set_bad_block_proc,
      	ext2fs_update_bb_inode), alloc.c (ext2fs_alloc_block):
      	Update to use new block/inode allocation statistics.
      8bd0c959