[Ocfs2-tools-devel] fsck, lost+found, libocfs2 allocating
Joel Becker
Joel.Becker at oracle.com
Sun Nov 28 21:11:38 CST 2004
On Mon, Nov 22, 2004 at 12:30:16PM -0800, Zach Brown wrote:
> - teach ocfs2_new_inode() to try allocating bits from each node. I
> don't have strong preferences about trying to keep them balanced, or
> anything, I would just walk them in order looking for a free bit.
Hmm, we could. My intention was always to try node 0, and
expand as needed.
> - add some input to the chain allocator so that ocfs2_new_inode() can
> ask to have a group created once it has discovered that all the node's
> allocators don't have groups with free bits.
> ocfs2_chain_alloc_expand()? Whatever.
Yes, that is exactly what I was thinking, though I was thinking
ocfs2_chain_alloc_add_group(). Just a name to show we are explicity
adding one group the the chain allocator.
> - implement ocfs2_chain_alloc_range() as the comments describe to
> allocate the group. This certainly wants a bitmap _alloc_range() helper
> which will have explicit knowledge of the bitmap regions -- callers just
> using test/set to find the range have to worry about unallocated regions
> and that's no good.
Yeah, we need a range allocator for any use of the cluster
bitmap.
> I'm also holding off on these changes until I hear from Joel that he
> hasn't already implemented them while on a plane :)
I haven't, sorry. Been very busy over here.
Joel
--
"You cannot bring about prosperity by discouraging thrift. You cannot
strengthen the weak by weakening the strong. You cannot help the wage
earner by pulling down the wage payer. You cannot further the
brotherhood of man by encouraging class hatred. You cannot help the
poor by destroying the rich. You cannot build character and courage by
taking away a man's initiative and independence. You cannot help men
permanently by doing for them what they could and should do for
themselves."
- Abraham Lincoln
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