1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * This file is part of Lustre, http://www.lustre.org
7 * See also lustre_idl.h for wire formats of requests.
14 # include <linux/fs.h>
15 # include <linux/dcache.h>
16 # ifdef CONFIG_FS_POSIX_ACL
17 # ifdef HAVE_XATTR_ACL
18 # include <linux/xattr_acl.h>
19 # endif /* HAVE_XATTR_ACL */
20 # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H
21 # include <linux/posix_acl_xattr.h>
22 # endif /* HAVE_LINUX_POSIX_ACL_XATTR_H */
23 # endif /* CONFIG_FS_POSIX_ACL */
24 # ifndef HAVE_VFS_INTENT_PATCHES
25 # include <linux/lustre_intent.h>
27 #endif /* __KERNEL__ */
30 #ifdef CONFIG_FS_POSIX_ACL
31 # ifdef HAVE_XATTR_ACL
32 # define MDS_XATTR_NAME_ACL_ACCESS XATTR_NAME_ACL_ACCESS
33 # define mds_xattr_acl_size(entry) xattr_acl_size(entry)
34 # else /* HAVE_XATTR_ACL */
35 # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H
36 # define MDS_XATTR_NAME_ACL_ACCESS POSIX_ACL_XATTR_ACCESS
37 # define mds_xattr_acl_size(entry) posix_acl_xattr_size(entry)
38 # endif /* HAVE_LINUX_POSIX_ACL_XATTR_H */
39 # endif /* HAVE_XATTR_ACL */
41 # define LUSTRE_POSIX_ACL_MAX_ENTRIES (32)
43 # define LUSTRE_POSIX_ACL_MAX_SIZE XATTR_ACL_SIZE
45 # else /* CONFIG_FS_POSIX_ACL */
46 # define LUSTRE_POSIX_ACL_MAX_SIZE 0
47 # endif /* CONFIG_FS_POSIX_ACL */
49 #endif /* _LUSTRE_ACL_H */