[Ocfs2-tools-commits] branch, master, updated. ocfs2-tools-1.4.0-394-g1ccbcf1

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Oct 15 19:19:51 PDT 2009


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, master has been updated
       via  1ccbcf1e089d88be3db22a44cab5fc9540c2eb6b (commit)
       via  a07f0fa79617c8cbd54e8118f0d1ff7d84f7adda (commit)
       via  31f2c6f7bdee8d401867127497fd43226b1b65d3 (commit)
       via  0ba678c4111cf1e8fa96ca78952f7be9e48feedf (commit)
       via  07123ea6e09ecc2397e3233212089eba9145c04b (commit)
       via  1264b4e004daf3d5e128df057aae43bc923e9b8b (commit)
       via  caa7c9bb33ef234e4567c31df10771f0feeec14b (commit)
       via  469df895244fabd1b3de456379405a625cd2b628 (commit)
       via  2f16c6ac100c5bbd670669c4559f979e3328a4c6 (commit)
       via  da24caa41b927b0cfac8b2624a8cb98b564a1efd (commit)
      from  c86baa4116e1fe4d716ea4c1a5ee24bacb24541d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1ccbcf1e089d88be3db22a44cab5fc9540c2eb6b
Author: Tao Ma <tao.ma at oracle.com>
Date:   Wed Sep 30 10:18:44 2009 +0800

    libocfs2: Add remove_extent.
    
    ocfs2_remove_extent is useful when we want to remove some parts
    from the extent tree. So add them.
    
    Note:
    Currently, there is no caller, but refcount tree support will
    soon be added and use it to change the refcount tree.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit a07f0fa79617c8cbd54e8118f0d1ff7d84f7adda
Author: Tao Ma <tao.ma at oracle.com>
Date:   Thu Sep 24 13:50:42 2009 +0800

    libocfs2: Write leaf extent block in case of record replacement.
    
    In ocfs2_split_extent, when we meet with the situation
    of c_split_covers_rec, the old solution just replace the extent
    record and forget to write the leaf block. This patch fixes it
    and since the root of an extent tree can be anything, so we
    leave it to the caller.
    
    Mainline commit is 47be12e4eec84c1846f29af64fe25a396b57a026.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 31f2c6f7bdee8d401867127497fd43226b1b65d3
Author: Tao Ma <tao.ma at oracle.com>
Date:   Wed Sep 30 09:57:02 2009 +0800

    libocfs2: Abstract extent split process.
    
    ocfs2_mark_extent_written actually does the following things:
    1. check the parameters.
    2. Duplicate the extent block.
    2. initialize the left_path and split_rec.
    3. call __ocfs2_mark_extent_written. it will do:
       1) check the flags of unwritten
       2) do the real split work.
    The whole process is packed tightly somehow. So this patch
    will abstract 2 different functions so that future b-tree
    operation can work with it.
    
    1. __ocfs2_split_extent will accept path and split_rec and do
       the real split work.
    2. ocfs2_change_extent_flag will accept a new flag and initialize
       path and split_rec.
    
    So now ocfs2_mark_extent_written will do:
    1. check the parameters.
    2. Duplicate the extent block.
    3. call ocfs2_change_extent_flag.
       1) initalize the left_path and split_rec.
       2) check whether the new flags conflict with the old one.
       3) call __ocfs2_split_extent to do the split.
    
    The corresponding kernel commit is
    555936bfcb1af26c6919d6cedb83710bb03d4322.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 0ba678c4111cf1e8fa96ca78952f7be9e48feedf
Author: Tao Ma <tao.ma at oracle.com>
Date:   Fri Sep 25 15:47:03 2009 +0800

    libocfs2: Remove unnecessary usage of insert_ctxt.
    
    Some extent tree function use insert_ctxt which actually
    has nothing to do with insert. So remove them.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 07123ea6e09ecc2397e3233212089eba9145c04b
Author: Tao Ma <tao.ma at oracle.com>
Date:   Wed Sep 30 13:41:22 2009 +0800

    libocfs2: Add ocfs2_tree_insert_extent.
    
    Now ocfs2_inode_insert_extent use extent tree based b-tree
    functions, but other extent tree users all need some similar
    function, so a new function named ocfs2_tree_insert_extent
    is added and inode insert will use it. We also change the
    old duplicate_extent_block_inode to extent_tree based, so
    that we can save up our b-tree in case of insert fails.
    And we also move ocfs2_inode_insert_extent into extend_file.c
    since it is inode related.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 1264b4e004daf3d5e128df057aae43bc923e9b8b
Author: Tao Ma <tao.ma at oracle.com>
Date:   Wed Sep 30 10:09:52 2009 +0800

    libocfs2: Use ocfs2_extent_tree in all b-tree functions.
    
    Now we have added extent tree, so we can change all b-tree
    functions to extent tree based. insert_ctxt also removes di
    and adds et.
    
    ocfs2_xattr_find_leaf is replaced with ocfs2_tree_find_leaf.
    the old ocfs2_insert_extent is also renamed as
    ocfs2_inode_insert_extent since it is only used to add some
    clusters to an inode.
    
    Part of the patches are generated from Tiger's patch
    http://oss.oracle.com/pipermail/ocfs2-tools-devel/2009-September/002118.html.
    
    Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit caa7c9bb33ef234e4567c31df10771f0feeec14b
Author: Tao Ma <tao.ma at oracle.com>
Date:   Fri Sep 25 09:28:56 2009 +0800

    libocfs2: Add more functions for ocfs2_path creation.
    
    Add ocfs2_new_path_from_path and ocfs2_new_path_from_et.
    Remove fs from ocfs2_new_path and ocfs2_new_inode_path
    since we never use fs when creating a ocfs2_path.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 469df895244fabd1b3de456379405a625cd2b628
Author: Tao Ma <tao.ma at oracle.com>
Date:   Wed Sep 30 09:59:55 2009 +0800

    libocfs2: Move b-tree function to extent_tree.c.
    
    Now b-tree functions are all in libocfs2/extend_file.c.
    But since Tiger has added a new file named extent_tree.c,
    We'd better move all b-tree related functions there.
    
    Note:
    I only cut/paste the code here, and no functions are changed.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 2f16c6ac100c5bbd670669c4559f979e3328a4c6
Author: Tao Ma <tao.ma at oracle.com>
Date:   Thu Sep 24 15:48:42 2009 +0800

    libocfs2: Add more members to ocfs2_extent_tree.
    
    Like ocfs2_path, we have to add blkno to ocfs2_extent_tree so
    that we can have the block number for the root buf.
    
    Different extent tree have different type of tree root.
    So we need different root function method.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit da24caa41b927b0cfac8b2624a8cb98b564a1efd
Author: Tiger Yang <tiger.yang at oracle.com>
Date:   Thu Sep 24 15:38:51 2009 +0800

    libocfs2: add extent tree operations
    
    This patch add extent tree structures and operations, with them
    we can handle different types of extent trees. Now we have three types
    of the trees, such as file data tree, xattr record tree and xattr value tree.
    
    Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

-----------------------------------------------------------------------

Summary of changes:
 fswreck/extent.c                          |    4 +-
 include/ocfs2/ocfs2.h                     |   11 +-
 libocfs2/Makefile                         |    3 +-
 libocfs2/extend_file.c                    | 3727 +----------------------------
 libocfs2/{extend_file.c => extent_tree.c} |  978 ++++----
 libocfs2/extent_tree.h                    |  111 +
 libocfs2/xattr.c                          |    3 +-
 tunefs.ocfs2/feature_sparse_files.c       |    2 +-
 8 files changed, 658 insertions(+), 4181 deletions(-)
 copy libocfs2/{extend_file.c => extent_tree.c} (85%)
 create mode 100644 libocfs2/extent_tree.h


hooks/post-receive
-- 
Tools to manage the ocfs2 filesystem.



More information about the Ocfs2-tools-commits mailing list