[Ocfs2-tools-devel] [PATCH 10/20] bitmap: Add 2 fields to facilitate discontiguous block group.

Joel Becker Joel.Becker at oracle.com
Thu Jun 10 14:30:52 PDT 2010


On Mon, May 17, 2010 at 04:46:57PM +0800, Tao Ma wrote:
> For a discontiguous block group, we will have some bitmap
> region which doesn't start from the bit offset aligned to bytes.
> And I don't want to create a new bitmap region which start
> from that bit offset because in that case when we read/write
> from the original bg->bg_bitmap, we have to shift bits for
> every bytes in the region. That is too bad.

	Why are you creating multiple regions?  A region is a bitmap
hunk, not a disk hunk.  So you could just have one region with the
entire gd bitmap, but when you go to use it you could have specific
get/set functions that know how to read the right blkno.

Joel

-- 

"There is a country in Europe where multiple-choice tests are
 illegal."
        - Sigfried Hulzer

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list