Whamcloud - gitweb
b=2264
[fs/lustre-release.git] / lustre / include / linux / lustre_user.h
index 2eba485..9866acf 100644 (file)
@@ -25,6 +25,9 @@
 #define _LUSTRE_USER_H
 #include <asm/types.h>
 
+#define IOC_MDC_TYPE         'i'
+#define IOC_MDC_GETSTRIPE    _IOWR(IOC_MDC_TYPE, 21, struct lov_mds_md *)
+
 #define LL_IOC_GETFLAGS                 _IOR ('f', 151, long)
 #define LL_IOC_SETFLAGS                 _IOW ('f', 152, long)
 #define LL_IOC_CLRFLAGS                 _IOW ('f', 153, long)
@@ -65,4 +68,8 @@ struct lov_user_md_v1 {           /* LOV EA user data (host-endian) */
         struct lov_user_ost_data_v1 lmm_objects[0]; /* per-stripe data */
 } __attribute__((packed));
 
+extern int op_create_file(char *name, long stripe_size, int stripe_offset,
+                          int stripe_count);
+extern int get_file_stripe(char *path, struct lov_user_md *lum);
+
 #endif /* _LUSTRE_USER_H */