From 7e039a24fbecd45ffcf51fbb9fb177399d3d1794 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 17 Apr 2001 01:36:11 +0000 Subject: [PATCH] sync with kernel header, change doesn't affect userspace. --- include/xfs_inode.h | 7 +++++++ include/xfs_quota.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/include/xfs_inode.h b/include/xfs_inode.h index aab236bef..667a847d6 100644 --- a/include/xfs_inode.h +++ b/include/xfs_inode.h @@ -492,6 +492,13 @@ xfs_inode_t *xfs_bhvtoi(struct bhv_desc *bhvp); */ #define XFS_CHASH(mp,blk) ((mp)->m_chash + (((uint)blk) % (mp)->m_chsize)) +/* + * For multiple groups support: if ISGID bit is set in the parent + * directory, group of new file is set to that of the parent, and + * new subdirectory gets ISGID bit from parent. + */ +#define XFS_INHERIT_GID(pip, vfsp) ((pip) != NULL && \ + (((vfsp)->vfs_flag & VFS_GRPID) || ((pip)->i_d.di_mode & ISGID))) /* * xfs_iget.c prototypes. diff --git a/include/xfs_quota.h b/include/xfs_quota.h index 2dd83faa7..a86651c4a 100644 --- a/include/xfs_quota.h +++ b/include/xfs_quota.h @@ -123,6 +123,11 @@ typedef __uint16_t xfs_qwarncnt_t; #define XFS_QMOPT_ASYNC 0x2000000 #define XFS_QMOPT_DELWRI 0x4000000 +/* + * flags for dqalloc. + */ +#define XFS_QMOPT_INHERIT 0x8000000 + /* * flags to xfs_trans_mod_dquot. */ -- 2.47.2