* Use is subject to license terms.
*/
/*
- * Copyright (c) 2011, Intel Corporation.
+ * Copyright (c) 2011, 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* Lustre is a trademark of Sun Microsystems, Inc.
*
- * lustre/lustre/include/lustre_idmap.h
+ * lustre/lustre/include/lustre_acl.h
*
* MDS data structures.
* See also lustre_idl.h for wire formats of requests.
# include <linux/dcache.h>
# ifdef CONFIG_FS_POSIX_ACL
# include <linux/posix_acl_xattr.h>
-# define LUSTRE_POSIX_ACL_MAX_SIZE XATTR_ACL_SIZE
+# define LUSTRE_POSIX_ACL_MAX_ENTRIES 32
+# define LUSTRE_POSIX_ACL_MAX_SIZE \
+ (sizeof(posix_acl_xattr_header) + \
+ LUSTRE_POSIX_ACL_MAX_ENTRIES * sizeof(posix_acl_xattr_entry))
# endif /* CONFIG_FS_POSIX_ACL */
# include <linux/lustre_intent.h>
# include <linux/xattr.h> /* XATTR_{REPLACE,CREATE} */