e2fsprogs/lib/ext2fs
Theodore Ts'o ef344e13d2 Centeralize calculation of which blocks are reserved/used for
the superblock and block group descriptors into two functions:
ext2fs_reserve_super_and_bgd, found in lib/ext2fs/alloc_sb.c, and
ext2fs_super_and_bgd_lock, found in lib/ext2fs/close.c.

Change e2fsck/pass1.c (mark_table_blocks), lib/ext2fs/closefs.c
(ext2fs_flush), lib/ext2fs/initialize.c (ext2fs_initialize),
and misc/dumpe2fs.c (list_desc) to use these functions.

e2fsck/ChangeLog
    pass1.c (mark_table_blocks): Use the new function
    	ext2fs_reserve_super_and_bgd to calculate the blocks to be
    	reserved.

lib/ext2fs/ChangeLog
    closefs.c (ext2fs_super_and_bgd_loc): New function which
    	centralizes the calculation of the superblock and block
    	group descriptors.
    	(ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
    	out where to write the superblock and block group
    	descriptors.
    
    alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
    	reserves space in the block bitmap using
    	ext2fs_super_and_bgd_loc.
    
    initialize.c (ext2fs_initialize): Use
    	ext2fs_reserve_super_and_bgd to initialize the block bitmap.

misc/ChangeLog
    dumpe2fs.c (list_desc): Use ext2fs_super_and_bgd_loc to
    	determine the locations of the superblock and block group
     	descriptors.
2003-11-21 09:02:21 -05:00
..
dll ChangeLog, MCONFIG.in, configure, configure.in: 2001-01-11 15:48:50 +00:00
.cvsignore .cvsignore: 2000-05-25 23:19:08 +00:00
ChangeLog Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
Makefile.in Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
alloc.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
alloc_sb.c Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
alloc_stats.c Fix bug where ext2fs_mkdir wasn't correctly bumping the number of 2002-02-03 01:28:52 -05:00
alloc_tables.c Add support for the meta_bg feature flag to the resize2fs program. 2002-10-30 23:07:21 -05:00
badblocks.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
bb_compat.c Many files: 2001-05-14 11:35:52 +00:00
bb_inode.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
bitmaps.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
bitops.c Many files: 2001-05-14 11:35:52 +00:00
bitops.h bitops.h: Add #define's for ext2fs_{l,b}e{32,16}_to_cpu and 2002-06-28 08:10:29 -04:00
block.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
bmap.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
bmove.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
brel.h Many files: 2001-01-11 04:54:39 +00:00
brel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
check_desc.c Many files: 2001-05-14 11:35:52 +00:00
closefs.c Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
cmp_bitmaps.c Many files: 2001-05-14 11:35:52 +00:00
dblist.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dblist_dir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dir_iterate.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dirblock.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dirhash.c Fix gcc -Wall nits. 2003-01-25 00:26:48 -05:00
dosio.c ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00
dosio.h Many files: 1997-08-11 20:29:22 +00:00
dupfs.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
e2image.h Many files: 2001-05-03 04:02:29 +00:00
expanddir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
ext2_err.et.in initialize.c (ext2fs_initialize): If the user specifies a really 2003-01-19 21:01:22 -05:00
ext2_ext_attr.h Fix up lots of portability problems that caused e2fsprogs not to build successfully 2003-03-06 11:09:18 -05:00
ext2_fs.h Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
ext2_io.h Many files: 2000-10-26 20:24:43 +00:00
ext2_types.h.in Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
ext2fs.h Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
ext2fsP.h Add support to e2fsck to reindex directories to use hash trees. 2002-07-20 00:28:07 -04:00
ext_attr.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
fileio.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
finddev.c finddev.c (scan_dir): Fix memory leak; we weren't calling 2001-07-29 12:01:09 -04:00
flushb.c Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
freefs.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
gen_bitmap.c ChangeLog, Makefile.in, bitops.h, gen_bitmap.c: 2001-06-11 15:17:45 +00:00
get_pathname.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
getsectsize.c mke2fs.c (PRS, set_fs_defaults): If the sector size of the 2003-05-21 17:28:29 -04:00
getsize.c getsize.c (ext2fs_get_device_size): Allow windows code to get 2003-04-29 21:10:15 -04:00
icount.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
imager.c Add portability enhancements for Cygwin32 environment. 2003-04-13 00:44:19 -04:00
initialize.c Centeralize calculation of which blocks are reserved/used for 2003-11-21 09:02:21 -05:00
inline.c Many files: 2001-05-14 11:35:52 +00:00
inode.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
inode_io.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
irel.h Many files: 2001-01-11 04:54:39 +00:00
irel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
ismounted.c Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
jfs_compat.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
jfs_dat.h ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c: 2000-10-24 18:33:16 +00:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
kernel-jbd.h Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
kernel-list.h Lots of small random portability fixes to make e2fsprogs build 2002-02-12 02:34:44 -05:00
link.c link.c (ext2fs_link): When adding a new link to a directory, 2002-07-29 19:26:33 -04:00
llseek.c Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
lookup.c Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
mkdir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
mkjournal.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
namei.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
native.c ChangeLog, Makefile.in, swapfs.c, unix.c: 2001-06-11 07:00:04 +00:00
newdir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
nt_io.c Many files: 2001-05-14 11:35:52 +00:00
openfs.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
read_bb.c Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
read_bb_file.c ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid 2002-07-14 16:00:50 -04:00
rs_bitmap.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
rw_bitmaps.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
swapfs.c Add support for the meta_blockgroup filesystem format. 2002-10-20 00:38:57 -04:00
test_io.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
tst_badblocks.c Fix bug in resize2fs which caused it to fail on filesystems with a 2003-06-24 17:34:02 -04:00
tst_bitops.c Add new functions to bitops.h to find quickly search for set bits in 2001-07-04 14:04:58 -04:00
tst_byteswap.c Fix various gcc -Wall complaints. 2002-03-07 23:52:56 -05:00
tst_getsectsize.c mke2fs.c (PRS, set_fs_defaults): If the sector size of the 2003-05-21 17:28:29 -04:00
tst_getsize.c Many files: 2001-05-14 11:35:52 +00:00
tst_iscan.c ChangeLog, dumpe2fs.c, mke2fs.c: 2001-06-13 00:12:04 +00:00
unix_io.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
unlink.c Many files: 2001-05-14 11:35:52 +00:00
valid_blk.c valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which 2002-08-20 01:14:30 -04:00
version.c Many files: 2001-05-14 11:35:52 +00:00
write_bb_file.c Many files: 2001-05-14 11:35:52 +00:00