[Ocfs2-tools-commits] branch, dx_dirs, created. ocfs2-tools-1.4.0-516-g0fe34f2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Apr 19 15:24:40 PDT 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 0fe34f26335f1d2f10550b2e12f65f6f24f39a6f (commit)
- Log -----------------------------------------------------------------
commit 0fe34f26335f1d2f10550b2e12f65f6f24f39a6f
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:11 2010 +0800
dx_dirs: add an initial man page entry for indexed-dirs
This patch add an initial man page entry for indexed-dirs feature
string.
Signed-off-by: Coly Li <coly.li at suse.de>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 947d4450eed4a18299d7b14b828a69533eb4a2ed
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:10 2010 +0800
dx_dirs: try to install dir trailers when enable indexed-dirs
If metaecc feature is not enabled, previuos indexed-dirs patches in
ocfs2-tools does not install dir trailers and move the dir entries which
lie in the trailer area. This patch tries to install dir trailers when
enable indexed-dirs feature.
Signed-off-by: Coly Li <coly.li at suse.de>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 183b0b3a12396e838dcb9c1e7dc0423eb3a4fbd5
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:09 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 28f5939111c09de057750fb30ce40ade8bd2b8ef
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:08 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 88ed9a6f3d2bb06220c9188ad333b668b3936268
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:07 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit c797d07a1021d5c3a5541236739dabb5dfd4c620
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:06 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 2bbbdef8534534b12cf3dd3ad9db6a1ebd74d0a3
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:05 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 583be25c5f5ea6ec34b4ec499df12c450d457778
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:04 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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 5110de09d64c84037e7e2ecdf76ab2d0d0f77ff4
Author: Coly Li <coly.li at suse.de>
Date: Sun Apr 11 16:10:03 2010 +0800
dx_dirs: add missing '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>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 56f5ac553c2686271b657ed8be4f8ca001aa7ed6
Author: Mark Fasheh <mfasheh at suse.com>
Date: Sun Apr 11 16:10:02 2010 +0800
dx_dirs: Update for dr_num_entries
This just adds the new field, swaps it appropriately, and prints it in
debuggs.
[Modified the patch for code rebase and cleanup -- Coly Li]
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit 0afd7bae3557bd443eac4e388c0c3cbf47690e5d
Author: Mark Fasheh <mfasheh at suse.com>
Date: Sun Apr 11 16:10:01 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.
[modified the patch for code rebase and cleanup -- Coly Li]
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit 585f52a5dfd8cb4301d29804e7e05ddff1f3fca1
Author: Mark Fasheh <mfasheh at suse.com>
Date: Sun Apr 11 16:10:00 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.
[modified the patch for code rebase and cleanup -- Coly Li]
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit b891260ad1500f3f2c0562d4376307b18bc4a9f4
Author: Mark Fasheh <mfasheh at suse.com>
Date: Sun Apr 11 16:09:59 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.
[modified the patch for code rebase and cleanup -- Coly Li]
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Coly Li <coly.li at suse.de>
commit 1f8bab1217e89bd3f2e0bbd9934dd07fc24dff5d
Author: Mark Fasheh <mfasheh at suse.com>
Date: Sun Apr 11 16:09:58 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.
[modified the patch for code rebase and cleanup -- Coly Li]
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