mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 10:33:35 +08:00
ef344e13d2
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. |
||
---|---|---|
.. | ||
.cvsignore | ||
badblocks.8.in | ||
badblocks.c | ||
base_device.c | ||
base_device.tst | ||
blkid.8.in | ||
blkid.c | ||
ChangeLog | ||
chattr.1.in | ||
chattr.c | ||
dumpe2fs.8.in | ||
dumpe2fs.c | ||
e2image.8.in | ||
e2image.c | ||
e2label.8.in | ||
e2label.c | ||
findfs.8.in | ||
findsuper.c | ||
fsck.8.in | ||
fsck.c | ||
fsck.h | ||
jfs_user.h | ||
logsave.8.in | ||
logsave.c | ||
lsattr.1.in | ||
lsattr.c | ||
Makefile.in | ||
mke2fs.8.in | ||
mke2fs.c | ||
mklost+found.8.in | ||
mklost+found.c | ||
nls-enable.h | ||
partinfo.c | ||
tune2fs.8.in | ||
tune2fs.c | ||
util.c | ||
util.h | ||
uuidgen.1.in | ||
uuidgen.c |