[Ocfs2-tools-devel] [PATCH 03/12] dx_dirs v7: mkfs.ocfs2 support

Mark Fasheh mfasheh at suse.com
Sun Jan 31 14:57:46 PST 2010


On Sat, Jan 30, 2010 at 02:17:39AM +0800, Coly Li wrote:
> This adds only basic support to mkfs.ocfs2 to write the seed fields used
> in directory indexing. The feature string
> 'indexed-dirs' is already there from a previous patch, so it is possible
> to create a new file system with the directory indexing feature turned on.
> 
> Future improvements that are needed:
> 
> - mkfs.ocfs2 should create the root directory and orphan dirs as
>   indexed.

Now that library support is complete, is it possible that we can trivially
fix this TODO item? I think we just need to add some more library calls into
mkfs.c:finish_normal_format()... By that time the unindexed versions of the
directories exist, but they should be empty. All we'd need to do then is
allocate the dx root and set the appropriate flags on their inodes.


> - possibly also we want to do this for the system dir, but that might
>   require some discussion.

This item I think we ought to wait on though. There's no clear advantage to
it imho.

	--Mark

--
Mark Fasheh



More information about the Ocfs2-tools-devel mailing list