2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2005-11-02 11:58:39 +08:00
|
|
|
* Copyright (c) 2001-2005 Silicon Graphics, Inc.
|
|
|
|
* All Rights Reserved.
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
2005-11-02 11:58:39 +08:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
2005-04-17 06:20:36 +08:00
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
2005-11-02 11:58:39 +08:00
|
|
|
* This program is distributed in the hope that it would be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
2005-11-02 11:58:39 +08:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
#ifndef __XFS_ACL_H__
|
|
|
|
#define __XFS_ACL_H__
|
|
|
|
|
2009-06-10 23:07:47 +08:00
|
|
|
struct inode;
|
|
|
|
struct posix_acl;
|
|
|
|
struct xfs_inode;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_XFS_POSIX_ACL
|
2009-06-10 23:07:47 +08:00
|
|
|
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);
|
2013-12-20 21:16:50 +08:00
|
|
|
extern int xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
|
2009-06-10 23:07:47 +08:00
|
|
|
extern int posix_acl_access_exists(struct inode *inode);
|
|
|
|
extern int posix_acl_default_exists(struct inode *inode);
|
2005-04-17 06:20:36 +08:00
|
|
|
#else
|
2011-07-26 17:15:20 +08:00
|
|
|
static inline struct posix_acl *xfs_get_acl(struct inode *inode, int type)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2013-12-20 21:16:50 +08:00
|
|
|
# define xfs_set_acl NULL
|
2009-06-10 23:07:47 +08:00
|
|
|
# define posix_acl_access_exists(inode) 0
|
|
|
|
# define posix_acl_default_exists(inode) 0
|
|
|
|
#endif /* CONFIG_XFS_POSIX_ACL */
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* __XFS_ACL_H__ */
|