#include <linux/types.h>
#include <linux/unistd.h>
#include <linux/lustre/lustre_fiemap.h>
+#include <linux/lustre/lustre_ver.h>
#ifndef __KERNEL__
# define __USE_ISOC99 1
}
#define IDENTITY_DOWNCALL_MAGIC 0x6d6dd629
-#define SEPOL_DOWNCALL_MAGIC 0x8b8bb842
/* permission */
#define N_PERMS_MAX 64
__u32 idd_groups[0];
};
-struct sepol_downcall_data {
+#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 16, 53, 0)
+/* old interface struct is deprecated in 2.14 */
+#define SEPOL_DOWNCALL_MAGIC_OLD 0x8b8bb842
+struct sepol_downcall_data_old {
__u32 sdd_magic;
__s64 sdd_sepol_mtime;
__u16 sdd_sepol_len;
char sdd_sepol[0];
};
+#endif
+
+#define SEPOL_DOWNCALL_MAGIC 0x8b8bb843
+struct sepol_downcall_data {
+ __u32 sdd_magic;
+ __u16 sdd_sepol_len;
+ __u16 sdd_padding1;
+ __s64 sdd_sepol_mtime;
+ char sdd_sepol[0];
+};
#ifdef NEED_QUOTA_DEFS
#ifndef QIF_BLIMITS