summaryrefslogtreecommitdiff
path: root/lib/ext2fs/Makefile.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-11-21 09:02:21 -0500
committerTheodore Ts'o <tytso@mit.edu>2003-11-21 09:02:21 -0500
commitef344e13d2125e9dae3764b98f9fe3a170cd79e2 (patch)
tree1012abc04bbdb773f8a1f4c15b3ea72a271ed542 /lib/ext2fs/Makefile.in
parentd07b150371f4a46f2729ab2635fc8f23c9ffca58 (diff)
downloade2fsprogs-ef344e13d2125e9dae3764b98f9fe3a170cd79e2.tar.gz
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.
Diffstat (limited to 'lib/ext2fs/Makefile.in')
-rw-r--r--lib/ext2fs/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ext2fs/Makefile.in b/lib/ext2fs/Makefile.in
index cc56d663..773791b2 100644
--- a/lib/ext2fs/Makefile.in
+++ b/lib/ext2fs/Makefile.in
@@ -17,6 +17,7 @@ INSTALL = @INSTALL@
OBJS= $(DEBUGFS_LIB_OBJS) $(RESIZE_LIB_OBJS) $(E2IMAGE_LIB_OBJS) \
ext2_err.o \
alloc.o \
+ alloc_sb.o \
alloc_stats.o \
alloc_tables.o \
badblocks.o \
@@ -65,6 +66,7 @@ OBJS= $(DEBUGFS_LIB_OBJS) $(RESIZE_LIB_OBJS) $(E2IMAGE_LIB_OBJS) \
SRCS= ext2_err.c \
$(srcdir)/alloc.c \
+ $(srcdir)/alloc_sb.c \
$(srcdir)/alloc_stats.c \
$(srcdir)/alloc_tables.c \
$(srcdir)/badblocks.c \