From: Nathan Scott Date: Tue, 17 Apr 2001 01:36:11 +0000 (+0000) Subject: sync with kernel header, change doesn't affect userspace. X-Git-Tag: Release-1_0_0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e039a24fbecd45ffcf51fbb9fb177399d3d1794;p=thirdparty%2Fxfsprogs-dev.git sync with kernel header, change doesn't affect userspace. --- 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. */