Move the 32-bit specific bitmap code into gen_bitmap.c, and the
high-level interfaces into bitmaps.c. Eventually we'll move the
new-style bitmap code into gen_bitmap64.c, but first we need to
isolate the code with knowledge of the bitmap internals in one place
first.
In this patch we move allocation, free, copy, clear, set_padding, and
fudge_end function into gen_bitmap.c, and make sure that the bitmaps.c
and bitops.c no longer have any knowledge of the bitmap internals.
Create new functions ext2fs_{set,get}_{inode,block}_bitmap_range()
which allow programs like e2fsck, dumpe2fs, etc. to get and set chunks
of the bitmap at a time.
Move the representation details of the 32-bit old-style bitmaps into
gen_bitmap.c.
Change calls in dumpe2fs, mke2s, et. al to use the new abstractions.
The following are the commit comments which explain those changes a bit - perhaps it helps:
commit a0553c9d6e8dd6f 538f18ae447c45e 52f3c40eb6
Author: Theodore Ts'o <tytso@xxxxxx>
Date: Sun Jul 22 22:59:50 2007 -0400
libext2fs: 32-bit bitmap refactorization, part 1
Move the 32-bit specific bitmap code into gen_bitmap.c, and the
high-level interfaces into bitmaps.c. Eventually we'll move the
new-style bitmap code into gen_bitmap64.c, but first we need to
isolate the code with knowledge of the bitmap internals in one place
first.
In this patch we move allocation, free, copy, clear, set_padding, and
fudge_end function into gen_bitmap.c, and make sure that the bitmaps.c
and bitops.c no longer have any knowledge of the bitmap internals.
Signed-off-by: "Theodore Ts'o" <tytso@xxxxxx>
commit 50448d3dffc66f8 6592ee0d4b16e4b be9d08449e
Author: Theodore Ts'o <tytso@xxxxxx>
Date: Sun Jul 22 23:42:14 2007 -0400
libext2fs: 32-bit bitmap refactorization, part 2
Move the contents of rs_bitmap.c and cmp_bitmaps.c into gen_bitmap.c
and bitmaps.c.
Signed-off-by: "Theodore Ts'o" <tytso@xxxxxx>
commit f1f115a78f5ea59 9fc5f8815a741d4 3fedd5840d
Author: Theodore Ts'o <tytso@xxxxxx>
Date: Mon Jul 23 04:32:48 2007 -0400
libext2fs: 32-bit bitmap refactorization, part 3
Create new functions ext2fs_ {set,get} _{inode, block}_ bitmap_ range()
which allow programs like e2fsck, dumpe2fs, etc. to get and set chunks
of the bitmap at a time.
Move the representation details of the 32-bit old-style bitmaps into
gen_bitmap.c.
Change calls in dumpe2fs, mke2s, et. al to use the new abstractions.
Signed-off-by: "Theodore Ts'o" <tytso@xxxxxx>