[Ocfs2-tools-devel] libocfs2 allocation of clusters and fsck

Zach Brown zach.brown at oracle.com
Thu Oct 28 12:58:28 CDT 2004


> 	It's not really an optimization (the library doing allocation is
> probably pretty rare).  Its a convenience.  I can read everything into
> an ocfs2_bitmap type and then just use it.  Then I can just write out
> the changes at the end.  Plus, you can then use my ocfs2_bitmap type as
> something to compare against your fsck-generated map.

Mmm, that last bit is compelling.  Rather than comparing, though, it
seems we should just have fsck build up the bitmap as it scans and then
use the library to sync it back.

> o Try to populate an ocfs2_bitmap on the fly as needed.  That is, if you
>   ask for bit 1000, read as many chains as I can until I find the one
>   that matches bit 1000.

Oh, right, I keep forgetting that the chains aren't built for speedy
lookups.  That's compelling, too.

Sounds good.

- z



More information about the Ocfs2-tools-devel mailing list