*/
#ifndef _LUSTRE_USER_H
#define _LUSTRE_USER_H
+
+#ifdef HAVE_ASM_TYPES_H
#include <asm/types.h>
+#else
+#include "types.h"
+#endif
+
#ifdef __KERNEL__
#include <linux/string.h>
#else
#include <string.h>
#endif
+/* for statfs() */
+#define LL_SUPER_MAGIC 0x0BD00BD0
+
#define IOC_MDC_TYPE 'i'
#define IOC_MDC_GETSTRIPE _IOWR(IOC_MDC_TYPE, 21, struct lov_mds_md *)
+#define IOC_MDC_SHOWFID _IOWR(IOC_MDC_TYPE, 23, struct lustre_id *)
+
+#ifndef EXT3_IOC_GETFLAGS
+#define EXT3_IOC_GETFLAGS _IOR('f', 1, long)
+#define EXT3_IOC_SETFLAGS _IOW('f', 2, long)
+#define EXT3_IOC_GETVERSION _IOR('f', 3, long)
+#define EXT3_IOC_SETVERSION _IOW('f', 4, long)
+#define EXT3_IOC_GETVERSION_OLD _IOR('v', 1, long)
+#define EXT3_IOC_SETVERSION_OLD _IOW('v', 2, long)
+#endif
#define LL_IOC_GETFLAGS _IOR ('f', 151, long)
#define LL_IOC_SETFLAGS _IOW ('f', 152, long)
#define LL_IOC_MDC_MKDIRSTRIPE _IOW ('f', 160, long)
#define LL_IOC_GROUP_LOCK _IOW ('f', 161, long)
#define LL_IOC_GROUP_UNLOCK _IOW ('f', 162, long)
+#define LL_IOC_GETFACL _IOW ('f', 163, long)
+#define LL_IOC_SETFACL _IOW ('f', 164, long)
+
+#define LL_IOC_FLUSH_CRED _IOW ('f', 170, long)
+#define LL_IOC_KEY_TYPE _IOW ('f', 171, long)
+#define LL_IOC_DISABLE_CRYPTO _IOW ('f', 172, long)
+#define LL_IOC_ENABLE_CRYPTO _IOW ('f', 173, long)
+#define LL_IOC_AUDIT _IOW ('f', 174, __u64)
#define O_LOV_DELAY_CREATE 0100000000 /* hopefully this does not conflict */
struct ll_recreate_obj {
__u64 lrc_id;
__u32 lrc_ost_idx;
+ __u32 lrc_padding;
+ __u64 lrc_group;
};
struct obd_uuid {
static inline int obd_uuid_equals(struct obd_uuid *u1, struct obd_uuid *u2)
{
- return strcmp(u1->uuid, u2->uuid) == 0;
+ return strcmp((char *)u1->uuid, (char *)u2->uuid) == 0;
+}
+
+static inline int obd_uuid_empty(struct obd_uuid *uuid)
+{
+ return uuid->uuid[0] == '\0';
}
static inline void obd_str2uuid(struct obd_uuid *uuid, char *tmp)
{
- strncpy(uuid->uuid, tmp, sizeof(*uuid));
+ strncpy((char *)uuid->uuid, tmp, sizeof(*uuid));
uuid->uuid[sizeof(*uuid) - 1] = '\0';
}
+/* remote acl ioctl */
+struct ll_acl_ioctl_data {
+ char *cmd; /* IN */
+ unsigned long cmd_len;
+ char *res; /* OUT */
+ unsigned long res_len;
+ int status; /* OUT */
+};
+
#endif /* _LUSTRE_USER_H */