/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * * This file is part of Lustre, http://www.lustre.org * * MDS data structures. * See also lustre_idl.h for wire formats of requests. */ #ifndef _LUSTRE_ACL_H #define _LUSTRE_ACL_H #ifdef __KERNEL__ # include # include # ifdef CONFIG_FS_POSIX_ACL # ifdef HAVE_XATTR_ACL # include # endif /* HAVE_XATTR_ACL */ # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H # include # endif /* HAVE_LINUX_POSIX_ACL_XATTR_H */ # endif /* CONFIG_FS_POSIX_ACL */ # ifndef HAVE_VFS_INTENT_PATCHES # include # endif #endif /* __KERNEL__ */ /* ACL */ #ifdef CONFIG_FS_POSIX_ACL # ifdef HAVE_XATTR_ACL # define MDS_XATTR_NAME_ACL_ACCESS XATTR_NAME_ACL_ACCESS # define mds_xattr_acl_size(entry) xattr_acl_size(entry) # else /* HAVE_XATTR_ACL */ # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H # define MDS_XATTR_NAME_ACL_ACCESS POSIX_ACL_XATTR_ACCESS # define mds_xattr_acl_size(entry) posix_acl_xattr_size(entry) # endif /* HAVE_LINUX_POSIX_ACL_XATTR_H */ # endif /* HAVE_XATTR_ACL */ # define LUSTRE_POSIX_ACL_MAX_ENTRIES (32) # define LUSTRE_POSIX_ACL_MAX_SIZE XATTR_ACL_SIZE # else /* CONFIG_FS_POSIX_ACL */ # define LUSTRE_POSIX_ACL_MAX_SIZE 0 # endif /* CONFIG_FS_POSIX_ACL */ #endif /* _LUSTRE_ACL_H */