[Ocfs2-tools-commits] branch, dx_dirs, created. ocfs2-tools-1.4.0-488-g878dd75
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Mar 5 15:52:28 PST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Tools to manage the ocfs2 filesystem.".
The branch, dx_dirs has been created
at 878dd7543644ca09dd3043713905db1574628619 (commit)
- Log -----------------------------------------------------------------
commit 878dd7543644ca09dd3043713905db1574628619
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:26:36 2010 +0800
dx_dirs: fix return value of walk_dirblock() when enable metaecc
If there is no error, the return value 'ret' might be used with
undefined initial value. This patch fixes the error by initiating
it to 0.
Reported-by: Vit Pelcak <vpelcak at novell.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit aa58ec72bedf1fed4777658e4f99b7bcb251e958
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:24:54 2010 +0800
dx_dirs: build indexed trees when enabling indexed-dirs
Previos enable indexed-dirs implementation only set superblock flag,
does not build indexed trees for existed directories.
Tis patch tries to build indexed trees for directories when enable
indexed-dirs.
Signed-off-by: Coly Li <coly.li at suse.de>
Cc: Mark Fasheh <mfasheh at suse.com>
commit 3dbc4484c3275511562f31a6ae6cf507ddbb04ae
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:19:20 2010 +0800
dx_dirs: add disable indexed-dirs support in tunefs.ocfs2
This patch truncates all directories' indexed tree if '--fs-features
noindexed-tree' option is given. The indexed dirs
related flags on directory inodes and superblock are cleared too.
Signed-off-by: Coly Li <coly.li at suse.de>
Acked-by: Mark Fasheh <mfasheh at suse.com>
commit 7b5bbba801231e63c844edc5a53303bf2889dabd
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:15:20 2010 +0800
dx_dirs: add 'blocknr' in callback of ocfs2_dir_iterate()
In order to make ocfs2_dx_dir_insert() easier to set the dir block
number to a dx record, a new parameter 'uint64_t
blocknr' is added into the call back function parameter of
ocfs2_dir_iterate(). This patch includes (part of) the
related changes which are not mentioned in previous patches.
Signed-off-by: Coly Li <coly.li at suse.de>
Cc: Mark Fasheh <mfasheh at suse.com>
commit 93958203451767f4367b10e173a4aa62da37ee98
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:14:32 2010 +0800
dx_dirs: fsck.ocfs2 support
This patch does a basic indexed dirs support in fsck.ocfs2.
During pass2, if a directory block is changed, and indexed dirs in
enabled, the indexed tree of this directory will be
truncate, then rebuild with the modified directory data. All the
modified directories' inode numbers are recored in a
rb-tree, when all directories get scanned, truncate and rebuild the
directories whose inode recorded in the rb-tree.
Signed-off-by: Coly Li <coly.li at suse.de>
Cc: Mark Fasheh <mfasheh at suse.com>
commit e0be09ef401f956de296b30141152da7c5325a2f
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:13:20 2010 +0800
dx_dirs: more library support for directory indexing
This patch adds more library support for indexed dirs,
- dx_root alloc/delete
- dx_leaf alloc/delete
- dx_root read/write
- dx_leaf read/write
- indexed tree insert/truncate
- dx_root extent tree operations
- indexed dir support in ocfs2_lookup_system_inode(),
ocfs2_init_dir(), ocfs2_link(), ocfs2_unlink(),
ocfs2_lookup().
With this patch, indexed dirs support in fsck.ocfs2 is possible.
Signed-off-by: Coly Li <coly.li at suse.de>
Cc: Mark Fasheh <mfasheh at suse.com>
commit 038cb85f4de91cdfe251120cf29d4e222387429c
Author: Coly Li <coly.li at suse.de>
Date: Fri Mar 5 16:03:54 2010 +0800
dx_dirs: add missed 'ocfs2_filesys *fs' parameter
This patch add 'ocfs2_filesys *fs' parameter to
ocfs2_swap_dx_root_to_cpu(), and fix the mismatched arguments when
alling ocfs2_swap_extent_list_to_cpu().
Signed-off-by: Coly Li <coly.li at suse.de>
Acked-by: Mark Fasheh <mfasheh at suse.com>
commit badd84d4805c1370fa9ffa46ca4c1d14e4e1b52d
Author: Mark Fasheh <mfasheh at suse.com>
Date: Fri Mar 5 16:02:31 2010 +0800
dx_dirs: Update for dr_num_entries
This just adds the new field, swaps it appropriately, and prints it in
debuggs.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit 0326ff1b0fa64cc36ba3693f3df3fd49a82b6232
Author: Mark Fasheh <mfasheh at suse.com>
Date: Fri Mar 5 15:59:13 2010 +0800
dx_dirs: Add tunefs.ocfs2 feature for indexed directories
This only enables them for now. Disabling is a bit more involved, and
will come later.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit e6c1489c80067f2aa8aa46a767e65dc025bbf1a6
Author: Mark Fasheh <mfasheh at suse.com>
Date: Fri Mar 5 15:56:22 2010 +0800
dx_dirs: mkfs.ocfs2 support
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.
- possibly also we want to do this for the system dir, but that might
require some discussion.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit ea63b432090f6925f5d21cac07afae1748f572c7
Author: Mark Fasheh <mfasheh at suse.com>
Date: Fri Mar 5 15:48:13 2010 +0800
dx_dirs: debugfs.ocfs2 support
This adds a full set of functionality to debugfs.ocfs2 so that we can
visualize and debug indexed directories. Aside
from updates to other commands to dump newly added/used fields in old
structures, we get the following debugfs.ocfs2 commands:
dx_space - Show all entries in the free list
dx_dump - Show the directory index (including root block)
dx_leaf - Show a single directory index leaf block
dx_root - Show directory index root block, as well as any extent blocks
for non-inline dx_roots.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit 93ac33d7a312e2351cf10e4cf5b9208267ebfbef
Author: Mark Fasheh <mfasheh at suse.com>
Date: Fri Mar 5 15:46:44 2010 +0800
dx_dirs: Add library support for directory indexing
This patch updates ocs2_fs.h with the relevant directory indexing
structures. Additionally, libocfs2/ is given swap
functions for the new disk structures. The library also gets three new
iteration functions:
ocfs2_dx_entries_iterate() - to iterate all index entries in an inline,
or external index.
ocfs2_dx_frees_iterate() - an iterator for the dirblock free list.
ocfs2_extent_iterate_dx_root() - iterate the extent blocks of an index
tree.
Caveats:
Right now, this is all read-only. A major 'TODO' item is adding the
appropriate API's to enable creation, deletion and
various manipulation of the dx tree, as well as individual items.
None of the other library code really knows about the directory index.
This means that things like ocfs2_looup() is
still using the old-style lookup via the unindexed dirent tree.
We need to add support for the newly increased links_count maximum. This
should probably be a seperate patch though.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
-----------------------------------------------------------------------
hooks/post-receive
--
Tools to manage the ocfs2 filesystem.
More information about the Ocfs2-tools-commits
mailing list