[Ocfs2-tools-devel] [RFC 0/8] dx_dirs v4: brief info

Coly Li coly.li at suse.de
Wed Jan 20 07:20:44 PST 2010


This version is 2 week late than I expected. I spent much more time to understand how extent tree works in ocfs2 kernel
and user space code. Especially I do appreciate for any comment for the extent tree code of the patch series, since I
don't think I understand the extent tree code very well.

Most of the code are modified from Mark's indexed dirs kernel code. Mark also completes many patches to support indexed
dirs in user space, the patches can be found from branch "dx_dirs". This patch series does not include Mark's initial
patches.

Status:
The v4 patch series is generated from branch "dx_dirs", not "master". It just passes compiling (no error and warning),
in order to get feed back early, I will test and fix it after the post.

Improvement:
The v4 patch series adds indexed dirs support to fsck.ocfs2. In pass2, if a directory block is changed, the directory
will be recorded in a rb-tree. Later every directory inode from the rb-tree is checked, if it's not inlined, rebuild its
dir indexed tree.

ToDo:
- Add support to tunefs.ocfs2
- Make sure there is no conflict with fsck.ocfs2 -D option.

Thansk for your review :-)

Signed-off-by: Coly Li <coly.li at suse.de>
---
 fsck.ocfs2/dirblocks.c          |  130 +++++-
 fsck.ocfs2/include/dirblocks.h  |    4 +
 fsck.ocfs2/pass1.c              |   54 ++
 fsck.ocfs2/pass2.c              |   33 ++
 include/ocfs2-kernel/ocfs2_fs.h |   31 ++
 include/ocfs2/ocfs2.h           |   21 +-
 libocfs2/Makefile               |    3 +-
 libocfs2/alloc.c                |   91 ++++
 libocfs2/dir_indexed.c          | 1117 +++++++++++++++++++++++++++++++++++++++
 libocfs2/dir_indexed.h          |   25 +
 libocfs2/dirblock.c             |  158 +++++-
 libocfs2/extent_tree.c          |   53 ++
 libocfs2/extent_tree.h          |    4 +
 libocfs2/inode.c                |    4 +
 libocfs2/ocfs2_err.et           |    3 +
 libocfs2/truncate.c             |   15 +
 16 files changed, 1715 insertions(+), 31 deletions(-)
-- 
Coly Li
SuSE Labs



More information about the Ocfs2-tools-devel mailing list