[Ocfs2-commits] mfasheh commits r1363 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Aug 19 16:38:06 CDT 2004
Author: mfasheh
Date: 2004-08-19 15:38:04 -0500 (Thu, 19 Aug 2004)
New Revision: 1363
Modified:
trunk/src/namei.c
Log:
* commit a patch by <xiaofeng.ling at intel.com> which fixes us for
posix. We now pass all of the LTP filesystem test cases.
Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c 2004-08-19 18:36:00 UTC (rev 1362)
+++ trunk/src/namei.c 2004-08-19 20:38:04 UTC (rev 1363)
@@ -429,7 +429,12 @@
fe->i_suballoc_blkno = fileOffset >> osb->sb->s_blocksize_bits;
fe->i_suballoc_node = osb->node_num;
fe->i_uid = current->fsuid;
- fe->i_gid = current->fsgid;
+ if (dir->i_mode & S_ISGID) {
+ fe->i_gid = dir->i_gid;
+ if (S_ISDIR(mode))
+ mode |= S_ISGID;
+ } else
+ fe->i_gid = current->fsgid;
fe->i_mode = mode;
if (S_ISCHR (mode) || S_ISBLK (mode))
fe->id1.dev1.i_rdev = huge_encode_dev(dev);
More information about the Ocfs2-commits
mailing list