[Ocfs2-tools-commits] branch, master, updated. ocfs2-tools-1.4.0-410-gf0d61e9

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Jan 19 19:01:36 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, master has been updated
       via  f0d61e9ab703e5290b0f6780886c0aaae70813b2 (commit)
       via  c17f42ecca0f286b2475d37e1c6dbad46bb401fb (commit)
      from  8b2dcc5cc267ca7c143653e45524fae18fd4b3cb (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 f0d61e9ab703e5290b0f6780886c0aaae70813b2
Author: Tao Ma <tao.ma at oracle.com>
Date:   Mon Jan 11 23:07:36 2010 +0800

    libocfs2: Sync paths in ocfs2_append_rec_to_path.
    
    In user space, we use different alloced buffers to store
    different blocks which is unlike the kernel where we use
    buffer heads. So we have to sync the same block in different
    path by ourselves. So sync them in ocfs2_append_rec_to_path.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit c17f42ecca0f286b2475d37e1c6dbad46bb401fb
Author: Tao Ma <tao.ma at oracle.com>
Date:   Mon Jan 4 16:44:44 2010 +0800

    inline/xattr: Let ocfs2_file_write handle inline xattr properly.
    
    The kernel now supports both inline data and inline xattr, so
    we'd better support them also in user space. But now the user
    space libocfs2 still use the old ocfs2_max_inline_data, and
    we can easily corrupt a file's inline xattr with following steps:
    
    1. create an empty file by touch.
    2. set some xattrs in the file which will resides inside inode.
    3. write a user space program and call ocfs2_file_write like this:
    	memset(buf, 0, 3800);
            ret = ocfs2_file_write(ci, buf, 3800, 0, &wrote);
    
    In case of bs=4k, the max inline data count without xattr is
    3896, so the xattrs we set in step 2 is cleared by ocfs2_file_write.
    This patch is try to resolve this bug.
    
    Signed-off-by: Tao Ma <tao.ma at oracle.com>
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

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

Summary of changes:
 fsck.ocfs2/pass1.c              |    9 ++-------
 fswreck/inode.c                 |    3 ++-
 include/ocfs2-kernel/ocfs2_fs.h |   17 +++++++++--------
 libocfs2/alloc.c                |   21 +++++++++++++++------
 libocfs2/extent_tree.c          |   17 ++++++++++++++++-
 libocfs2/fileio.c               |    3 ++-
 libocfs2/inode.c                |    5 +----
 mkfs.ocfs2/mkfs.c               |   15 ++++++++++-----
 8 files changed, 57 insertions(+), 33 deletions(-)


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



More information about the Ocfs2-tools-commits mailing list