]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Centeralize calculation of which blocks are reserved/used for
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Nov 2003 14:02:21 +0000 (09:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Nov 2003 14:02:21 +0000 (09:02 -0500)
commitef344e13d2125e9dae3764b98f9fe3a170cd79e2
tree1012abc04bbdb773f8a1f4c15b3ea72a271ed542
parentd07b150371f4a46f2729ab2635fc8f23c9ffca58
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.
e2fsck/ChangeLog
e2fsck/pass1.c
lib/ext2fs/ChangeLog
lib/ext2fs/Makefile.in
lib/ext2fs/alloc_sb.c [new file with mode: 0644]
lib/ext2fs/closefs.c
lib/ext2fs/ext2fs.h
lib/ext2fs/initialize.c
misc/ChangeLog
misc/dumpe2fs.c