]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/pass3.c
e2fsck: use different bitmap types as appropriate
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Dec 2011 19:55:50 +0000 (14:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Dec 2011 06:12:44 +0000 (01:12 -0500)
commit830b44f4385eb255d08fe0c8b200f8d8e3e97a8d
treec00e638c1c54b0f41040a178d7080725c26525ec
parent0ff7bf30074d8a449ba389e9f088d356447105de
e2fsck: use different bitmap types as appropriate

Now that we have multiple backend implementations of the bitmap code,
this commit teaches e2fsck to use either the most appropriate backend
for each use case.

Since we don't know for sure if we will get it all right, the default
choices can be overridden via e2fsck.conf.  The various definitions
are shown here, with the current defaults (which may change as we add
more bitmap implementations and as learn what works better).

; EXT2FS_BAMP64_BITARRAY is 1
; EXT2FS_BMAP64_RBTREE is 2
; EXT2FS_BMAP64_AUTODIR is 3
[bitmaps]
inode_used_map = 2 ; pass1
inode_dir_map = 3 ; pass1
inode_reg_map = 2 ; pass1
block_found_map = 2 ; pass1
inode_bad_map = 2 ; pass1
inode_imagic_map = 2 ; pass1
block_dup_map = 2 ; pass1
block_ea_map = 2 ; pass1
inode_link_info = 2 ; pass1
inode_dup_map = 2 ; pass1b
inode_done_map = 3 ; pass3
inode_loop_detect = 3 ; pass3
fs_bitmaps = 2

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/pass2.c
e2fsck/pass3.c
e2fsck/unix.c
e2fsck/util.c
lib/ext2fs/ext2fs.h