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

Joel Becker Joel.Becker at oracle.com
Thu Oct 28 13:00:07 CDT 2004


On Thu, Oct 28, 2004 at 10:46:53AM -0700, Joel Becker wrote:
> 	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.

	Having an all-in-ram representation also allows easy "initialize
one of these guys during mkfs" operation.  You can build one in ram,
then just call ->write() and now it is on disk.  &tc.

Joel

-- 

Life's Little Instruction Book #237

	"Seek out the good in people."

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list